@JBis now on a serious note, convert your regexes into sets or LIKEs and then filter the output programmatically, but giving the user a way to use a regex is basically asking the user to stress and destroy your database
@MehdiB. well they have the option. In my mind the dev should give the most functionality possible. Even if its gonna take forever to do, let the user make the decision not to do it.
I can add a custom SQL input so they can optimize if they know how
I mean everyone in this room told you it's probably a bad idea and inviting trouble, but you're pushing on it with it anyway. So, go for it and good luck
If I just do AND's the first one will be WHERE AND ... which is invalid. So i have 1=1 so its WHERE 1 = 1 AND .... which is valid. But that seems stupid
Usually, if conditions are not required in our query statements, we don't use a WHERE clause. But I've seen a WHERE 1 clause being used in many places, even where other conditions are not present.
Why is this done?
Are there specific benefits to the execution time?
Does it enable other function...