SQL问题,小白求大神赐教,在线等! sql库case when 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select case when cast(CKS as int)=0 then ‘空’ else ‘有货’ end as statfrom 表 select case when cast(CKS as int)=0 then N‘空’ else N‘有货’ end as statfrom TableNameGood Luck! update [表名] set STAT=case CKS when '0' then '空' else '有货' end select case when cast(CKS as int)=0 then N‘空’ else N‘有货’ end as statfrom TableName 在查询分析器出错? 如何在程序中读到SQL SERVER的SA的密码 高手请进:在2表实现求赢利的SQL语句 关于锁 CHARINDEX如何查找大小写的位置? 请教SQL Server 数据库优化! 希望大家帮帮忙 时间格式转换,答对,马上给分! 我按照以上方法做了,还是无法连接? fortran中简单的选择结构问题 数据库连接疑难杂症 请问,一般的应用中,一个SQL server 2008数据库中会有多少个表?
from 表
when cast(CKS as int)=0 then N‘空’
else N‘有货’ end as stat
from TableNameGood Luck!
update [表名]
set STAT=case CKS when '0' then '空'
else '有货' end
when cast(CKS as int)=0 then N‘空’
else N‘有货’ end as stat
from TableName