where 1=1的用处
摘要:where 1=1有什么用?在SQL语言中,写这么一句话就跟没写一样。 select * from table1 where 1=1与select * from table1完全没有区别,甚至还有其他许多写法,1<>2,'a'='a','a'<>'b',其目的就只有一个,where 的条件为永真,得
阅读全文
posted @ 2017-04-03 19:20
posted @ 2017-04-03 19:20
posted @ 2017-04-03 19:03