这个存储过程怎么写! select (userinfo其他字段),sexy=case when sex=1 then '男' when sex=0 then '女' else '怪物' end from userinfo哈 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 create proc abcd as select *,sexy=case when sex=1 then '男' when sex=0 then '女' endfrom table1在查询分析器怎么怎么查询 create proc abcd as select table1.*,sexy=case when sex=1 then '男' when sex=0 then '女' endfrom table1查询分析器里: execute abcd 将 varchar 值 '男' 转换为数据类型为 int 的列时发生语法错误。 CREATE proc abcd as update table1 set sex='01' where sex='男'GOupdate table1 set sex='02' where sex='女'GOselect * from table1GO我要实现这样的功能 CREATE proc abcd asselect userinfo.field1,userinfo.field2,....,sexy=case when sex=1 then '男' when sex=0 then '女' else '怪物' end from userinfo 谁有平均滤波的程序啊,去极值和移动的都可以啊 用过ActiveReport 的请进! 如何在程序中嵌入DOS窗口。 VB求救! 高分求助!!!!!!! 请教高手--计算计算机一月内开机时间 关于SUB MAIN()的基础问题 如何用common control(100分) 在VB中使用DirectX,如何在表面中画点?以及取点的颜色? 有关VB中错误处理的问题,请教各位大侠 通过VB将图象保存到数据库方法优劣的讨论 給我一杯白开水!
select *,sexy=case
when sex=1 then '男'
when sex=0 then '女'
end
from table1
在查询分析器怎么怎么查询
select table1.*,sexy=case
when sex=1 then '男'
when sex=0 then '女'
end
from table1
查询分析器里: execute abcd
CREATE proc abcd as
update table1 set sex='01' where sex='男'
GO
update table1 set sex='02' where sex='女'
GO
select * from table1
GO
我要实现这样的功能
select userinfo.field1,userinfo.field2,....,sexy=case
when sex=1 then '男'
when sex=0 then '女'
else '怪物'
end
from userinfo