我问的这个问题重点不在于'phone'是什么数据类型.
我写的查询语句是类似于这样的
select a.ID,a.name,phone=(select top 1 phone from b where ...) from a inner join c on a.ID = c.ID where c.Flag='0'
'phone'是从b表中查询的字段.我只是想从类似下列的记录集中剔除一些记录
例如:
ID name phone
1 hh 1234
......
32 kk NULL
剔除 phone is null 的记录.
我的问题你明白了吗?
我写的查询语句是类似于这样的
select a.ID,a.name,phone=(select top 1 phone from b where ...) from a inner join c on a.ID = c.ID where c.Flag='0'
'phone'是从b表中查询的字段.我只是想从类似下列的记录集中剔除一些记录
例如:
ID name phone
1 hh 1234
......
32 kk NULL
剔除 phone is null 的记录.
我的问题你明白了吗?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货