select case len(aa)
case 16 then 1
case 18 then 2
else 3
end from yourtable
case 16 then 1
case 18 then 2
else 3
end from yourtable
解决方案 »
- 数据库报错:Could not find the index entry for RID '1601aef3060000000000010000' in index page (1:12963),
- 求多条件判断的触发器写法
- 数据库输入的文字变成问号!!!!!如何解决...请教各位...
- 采用COUNT(*) OVER(PARTITION BY 字段)的分组查询,请帮看下
- 批查询的语句执行顺序问题?
- 在sql中用什么数据类型来表示一个自动增加的列?
- SQL日期的比较,用什么啊?大于号怎么不行啊?在线等,急啊!
- SuperSocket 信息: 绑定在 TCP 端口 1433 上失败
- 如何实现不同数据库的两个相同表之间的数据共享??
- 求指导 SQL SERVER 触发器的问题
- 存储过程的一些问题?
- 如何用脚本建立一个带密码的用户?非常急~~~~~~
when len(AA) = 18 then 2
else 3 end as ‘分类’, * from yourtable
when 16 then 1
when 18 then 2
else 3
end