已经有人写出来了。 select * from s_zj where not 单据号 is Null另外可以判断长度 select * from s_zj where len(trim(单据号))>0您还可以前往“http://b4018.xici.net”提问, 提供:VB、VBA、Office二次开发免费技术支持; 承接:各类项目开发,如MIS系统,WEB网站,中小型应用软件等等;CO.:Vansoft Workroom MSN:[email protected] Email:[email protected] [email protected] TEL:025-86685867(范,24H)
单据号要是有空和null的时候(空和null不同)可以用select * from s_zj where 单据号='' or 单据号 is null 如果只要查有空 可以用select * from s_zj where 单据号='' 如果只要查有null 可以用select * from s_zj where 单据号 is null
select * from s_zj where not 单据号 is Null另外可以判断长度
select * from s_zj where len(trim(单据号))>0您还可以前往“http://b4018.xici.net”提问,
提供:VB、VBA、Office二次开发免费技术支持;
承接:各类项目开发,如MIS系统,WEB网站,中小型应用软件等等;CO.:Vansoft Workroom
MSN:[email protected]
Email:[email protected]
[email protected]
TEL:025-86685867(范,24H)
如果只要查有空
可以用select * from s_zj where 单据号='' 如果只要查有null
可以用select * from s_zj where 单据号 is null