开发者

sql server: boolean literals

开发者 https://www.devze.com 2023-03-25 14:08 出处:网络
I need to substitute a \"true\" value into queries conditio开发者_StackOverflow中文版n. How can I do it?

I need to substitute a "true" value into queries conditio开发者_StackOverflow中文版n. How can I do it?

1 , true didn't work. Do I really have to write 7=7 or some crap of this kind?


Yep, typically 1=1 or 1=0. There is no other way in T-SQL.

0

精彩评论

暂无评论...
验证码 换一张
取 消