多乐士外墙涂料价格:请问:SQL 语句中,当a这个字段的长度等于4时取它的后三位,该怎么写?
来源:百度文库 编辑:杭州交通信息网 时间:2024/05/08 15:55:31
SQL Server:
select case len(a) when 4 then substring(a, 2,3) else a end from xxxx
杭州交通信息网是一部内容开放、自由的互动网络百科全书
客观、专业、权威的知识性百科全书
来源:百度文库 编辑:杭州交通信息网 时间:2024/05/08 15:55:31
SQL Server:
select case len(a) when 4 then substring(a, 2,3) else a end from xxxx