WHERE statement after a UNION in SQL?

后端 未结 3 986
挽巷
挽巷 2020-12-12 23:29

How do I apply a WHERE statement after a UNION in SQL/MySQL?

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-12 23:56

    select column1..... from table1
    where column1=''
    union
    select column1..... from table2
    where column1= ''
    

提交回复
热议问题