求一个简单sql语句 表table1有 字段 content ,satae当state=1 时,正常显示content里面内容当state!=1时,content=""; 各位指点下啊. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 字段state 是int型字段content 是nvarchar型的. 各位别嫌分少啊. 没明白楼主的意思select "" as content from yourTable where state!=1 select case satae when 1 then content else '' end as contentfrom table1 select state, case when state <> 1 then content='' end select state, content = case when state <> 1 then '' end vs调试时,加载 xsl 处报错“无法显示网页” 视频边下载边看如何实现? 求助外键约束的问题!!!! |M| 发现一个超奇怪的问题:PrinterSettings.PrinterName 取打印机名称的,当在用VS2005的创建文件系统的时候可以,但用IIS创建的就不行 根据数据库权限动态生成菜单,请前辈指明前进方向? 如何通过读实时数据来改变文本框的位置和背景颜色? ASP.NET空间推荐 如何用xml来映射对象? 生成五位数字,高手急救 运行时添加的列的headertext?? 为什么我的vs.net里看不到设计啊?请各位高手指点! 请大侠们给个思路,动态生成数据库的,多谢
字段content 是nvarchar型的. 各位别嫌分少啊.
select "" as content from yourTable where state!=1
select case satae when 1 then content else '' end as content
from table1