Why would someone use WHERE 1=1 AND <conditions>
in a SQL claus.
I don't understand why would someone use this construction for defining a view, or use it inside a stored procedure.
for example:
select * from user where 1=1
Why would someone use WHERE 1=1 AND <conditions>
in a SQL claus.
I don't understand why would someone use this construction for defining a view, or use it inside a stored procedure.
for example:
select * from user where 1=1