Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要运行一个 Case 语句,其中给定表 numeric(18,2) 字段包含小数位,它将打印 'a' 否则它将打印 'b'
任何想法?
怎么样:
select case when cast(mycol as int) = mycol then 'b' else 'a' end