shealtiel
shealtiel

Reputation: 8388

sql server: boolean literals

I need to substitute a "true" value into queries condition. How can I do it?

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

Upvotes: 1

Views: 760

Answers (1)

Tao
Tao

Reputation: 13986

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

Upvotes: 3

Related Questions