sql 查询语句显示两个字段不同时为空的记录 如题:TableA 有 afield,bfield 两个字段都是varchar(50), 如何显示TableA中 afield,bfield不同时为空的所有记录查询语句 如何写 ? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select * from 表 where afield+bfield is not null select *from tbwhere afield is not null or bfield is not null select *from TableA where afield is not null or bfield is not nullselect *from TableA where afield is not null and bfield is not null 不为空: 我的意思是有数据即 null和' ',还有'' 都是空值 select * from 表 where isnull(afield,'')+isnull(bfield,'')<>'' select * from table1 where isnull(afield,'')<>'' or isnull(bfield,'')<>'' 如何确定“排产系统”的完工问题? default 约束是做什么的 ////////SQL 2008 ////////// 如何设置实现:局域网内其它机器就可以访问我的共享文件夹,不能使用企业管理器注册、操作我的SQL Server? 求教棘手问题:客户端软件可以正常连接,但从sqlserver中无法连接是什么原因? 如何将DBF文件转换为sql 求 一条更新 语句 存储过程如何调试? 了解Crystal Report的进来帮帮忙! 请问:“用户 'sa' 登录失败”的错误是怎么回事? sql基础问题 求书
where afield+bfield is not null
from tb
where afield is not null or bfield is not null
from TableA
where afield is not null or bfield is not nullselect *
from TableA
where afield is not null and bfield is not null
where isnull(afield,'')+isnull(bfield,'')<>''