你可以用
select 
isnull (col1,3),
isnull (col2,3),
.
.
.
.
from 
teams where title=2

解决方案 »

  1.   

    isnull((select 字段 from teams where title=2),3)
      

  2.   

    isnull((select 字段 from teams where title=2),3)服务器: 消息 170,级别 15,状态 1,行 1
    第 1 行: ',' 附近有语法错误。
      

  3.   

    select da=isnull((select 字段名 from teams where title=2),3)
      

  4.   

    老兄 jackting() 和zjcxc(邹建) 说的都对 你的语句其他处写错了 不是这里的错误