条件判断SQL怎么写 表A 中有两个字段 A_1, A_2我要查找A_1 = '小明' 的结果,并且要求 A_2 为空时,就修改A_2的值为 '18',如果A_2不为空, 就不修改A_2的值.要SQL语句 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 update table a set A_2 = '18' where A_1='小明' and A_2='' update A set A_2='18' where A_1='小明' and ltrim(rtrim(A_2))=''或update A set A_2='18' where A_1='小明' and (A_2 is null) 一条SQL语句?自从做了一个同时支持多种数据库平台的系统,复杂SQL语句基本不敢写了,唉 update table a set A_2 = '18' where A_1='小明' and isnull(A_2,'')='' update table a set A_2 = '18' where A_1='小明' and isnull(A_2,'')='' update table1 set A_2 = '18'where A_1 = '小明' and A_2 = '' update A set A_2='18' where A_1='小明' and ltrim(rtrim(A_2))='' update A set A_2 =18 where A_1 = '小明' and A_2 is null update database a set A_2=18 where A_1='小明' and isnull(A_2,'') ='' delphi20007有没有自带的CRC16函数啊? 如果取得上级菜单的indexof值呢 前台捕获Sql语句的问题 怎么在指定的数里面随机取数(随机random) 做《传奇》或是其他游戏外挂的朋友请进 ORACLE OLEDB如何通过Stored procedure取得结果集? 为什么程序无法持续运行 在application.run部分有问题 怎么把这个结构写入文件 怎样写一个没有窗口的程序(不是console)? kylix如何安装,难道没人知道吗? 为什么Pos会得到这样的结果? 怎么不能回复帖子了?
where A_1='小明' and A_2=''
或
update A set A_2='18' where A_1='小明' and (A_2 is null)
自从做了一个同时支持多种数据库平台的系统,复杂SQL语句基本不敢写了,唉
update table a set A_2 = '18' where A_1='小明' and isnull(A_2,'')=''
where A_1 = '小明' and A_2 = ''