一个SQL语句问题之二,请高手指点 select a.姓名,分数=cast(isNULL(b.分数,'未参加') as varchar)from table1 as a left join table2 as b on a.id=b.id 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select a.姓名,分数=(case when isNULL(b.分数,-1)<>-1 then cast(b.分数 as varchar) else '未参加' end)from table1 as a left join table2 as b on a.id=b.id select a. 姓名,(case when 分数 is null then '未参加' else cast(分数 as varchar(5) end) as '分数'from table1 a left join table2 b on a.id=b.id select a. 姓名,(case when b.分数 is null then '未参加' else cast(b.分数 as varchar(5)) end) as '分数'from table1 a left join table2 b on a.id=b.id 问题在那里 根据条件添加数据 sql server 2000 查询慢,50w条数据查询要30秒左右,请问如何优化查询时间 在线等请教高手一个SQL问题!看能否实现? 如何远程连接外网具有固定IP的sql数据库 存储过程sql语句拼合有错,但不知道怎么改,希望帮忙改一下。 好难,请帮助! mysql 存储过程 ★★想实现这种查询的SQL语句要怎么写? 如何将字符串“8:00:00“写入sql 2000数据库中去? 再求一UPDATE語句 用游标和不用游标的速度为何不同
then cast(b.分数 as varchar) else '未参加' end)
from table1 as a left join table2 as b on a.id=b.id
from table1 a left join table2 b on a.id=b.id
from table1 a left join table2 b on a.id=b.id