ACCESS读取不为空的字段 - MS-SQL Server / 疑难问题
如题.怎么读取数据库中字段不为空的信息?
我想读取数据库中图片一栏不为空的记录
SQL="select * from info where img not isnull"
没有报错.但是它把所有的都读出来了.没有图片的也读出来了..
SQL code:
select * from info where img is not isnull
SQL code:
select * from info where img is not null
SQL code:
SQL="select * from info where img is not isnull"
SQL code:
--access不知道行不試下
SQL="select * from info where isnull(img,'')<>''"
SQL code:
select * from info where img is not null
SQL code:
SQL="select * from info where img is not null"
不好意思,以为楼主差个IS
select * from info where img is not null
select * from info wher
相关问答:
可能因为工作的原因 接触数据库这块比较少,之前都是做程序这块,数据库这块都有专门的人来做 分工都很明细 所以对数据库这一块完全不了解。前段时间 去面试了几家公司 几乎都是在数据库这块挂掉的 连个简单的SQ ......
问题1
我用ADO连接设了用户名密码的数据库
但是我发现我不输入 用户名和密码 都可以连接成功 而且还能把数据读出来
剪了一个名为test数据库 建了一个名为people的表
见了一个 用户名1234 密码1234 的 ......
tab1 字段:billdate,goodsid,incount,inmoney,outcount,outmoney,endprice,endcount,endamt
tab2 字段:goodsid,goodskind(商品类型)
tab3 字段:goodskind(商品类型),kindname
结果:
得到商品类型在一段时间 ......
我想查询出每天数据的最大的一个值。表的格式如下
表名: hisdata
字段 编号 值 状态 时间
Id value state dattime
101 32.3 0 ......