SQL判斷快否有小數點 malagege included in SQL 2017-12-23 37 words One minute Contents 今天要查詢商品價格有小數點的,爬一下Google 有查到不錯方法,記錄一下 1 2 3 select col1, case col1 when cast(col1 as int) then '不是' else '是' end from 表1 1 2 3 select col1 from 表1 where col1 <> cast(col1 as int) 參考來源 邏輯生活: SQL 判斷值是否有小數點 Please enable JavaScript to view the comments powered by Disqus.