sql if else then的相關文章
sql if else then的相關商品
![sql server - Can you have if-then-else logic in SQL? - Stack Overflow](https://www.iarticlesnet.com/pub/img/site/s_27.jpeg)
sql server - Can you have if-then-else logic in SQL? - Stack Overflow
瀏覽:767
日期:2024-08-11
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...看更多