我正在尝试执行一个嵌套的case when查询。我的表有ID、code1和code2列。create table as select ID, code1 case when code1 is not null then 'yes' else (select code2, case whencode 2 is not null then 'no' else 'NA' from table) from table 我想要实现的是,如果code1<em
我需要了解表中的图像列是否为null。我一直试图使用CASE,但总是会出错。(xml,(CONVERT(varbinary(max),ReceivedData))) FROM ib_IncomingData 文本、ntext和图像数据类型不能进行比较或排序,除非使用是NULL或LIKE运算符。我能用什么来得到我需要的结果?