日期:2014-05-18  浏览次数:20592 次

id无效,为什么???
id number age 类型
897d58d5-9fcf-4da9-bc31-107b147ddd41 12 34 青年
179f2165-0446-403a-a87d-2035a3888607 54 23 青年人
ba90479f-8757-4c52-8ad2-224ceb226dbe 34 35 青年人
6dfb15c6-12f5-4ded-a773-660ae4a74958 34 23 老年人
52cace57-a12b-4d8b-9686-7cdfd2fc283e NULL 12 小孩
45f9ffbe-1270-4fa1-af34-bce391915ee8 23 51 青年人
NULL NULL NULL NULL

在用
select id, //在id这儿提示列id无效,为什么????
{
csae number 
when 34 then '中间号'
else ‘其他号’
end
}as 号码
from person10
说明person10为表名
执行后却说:
[b]消息 155,级别 15,状态 1,第 3 行
'csae' 不是可以识别的 ODBC scalar function 选项[b]
[/b]

------解决方案--------------------
{}改为()
------解决方案--------------------
把 {} 去掉
------解决方案--------------------
SQL里有{}这样的语法?