在线等-----这个SQL该怎么写?(50分)

  • 主题发起人 主题发起人 noyamm
  • 开始时间 开始时间
N

noyamm

Unregistered / Unconfirmed
GUEST, unregistred user!
想从table1中取出col1字段值 ,条件是当col1的值不是空字符串
 
奇怪!
select coll from table1 where coll<>''
 
select coll from table1 where coll<>''and coll is not null
 
select coll from table1 where not isnull(coll)
 
同意楼上的意见
 
不是吧,这是转分送分作弊吧。这是数据库的最初级问题啊。
 
解决了?
 
select coll from table1 where coll<>''and coll is not null
 
select coll from table1 where coll<>'' or col1 is not null
 
多人接受答案了。
 

Similar threads

回复
0
查看
1K
不得闲
S
回复
0
查看
1K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
930
SUNSTONE的Delphi笔记
S
S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
后退
顶部