經安全檢測,此網站為安全網站,請放心前往原始網址!

sql server - Can you have if-then-else logic in SQL? - Stack Overflow

I need to do select data from a table based on some kind of priority like so: select product, price from table1 where project = 1 -- pseudo: if no price found, do this: select product, price from ... With SQL server you can just use a CTE instead of IF/TH

stackoverflow.com

網址安全性掃描由 google 提供