在sql7.0 中的select 语句问题!(20分)

  • 主题发起人 主题发起人 福利彩票
  • 开始时间 开始时间

福利彩票

Unregistered / Unconfirmed
GUEST, unregistred user!
在sql中如果某字段为空我想为其赋一值,该怎么办?
如:select (if A.no if null then 0 else then A.no) NO from tablename A
谢谢了!
 
select isnull(no,0) from tablename
 
太谢谢了!
 

Similar threads

S
回复
0
查看
1K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
927
SUNSTONE的Delphi笔记
S
S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
后退
顶部