close

1.insert into cities (id,name) values( 69,'shit') ,(68,'ii')

 

2.

select id, case 
approve when 0 then '通過' else '沒通過' end as status
 from users

3.

select id,total_price,case when total_price > 200 then '打3折' when total_price <=200 then '打8折' end as 'count'  from invoices

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 學習程式 的頭像
    學習程式

    程式學習日記,如果我幫助了你請讓我知道

    學習程式 發表在 痞客邦 留言(0) 人氣()