解决方案 »
- SQL sum语句,高手指点
- 排序问题
- 、偏移量为 0x000010f26a4000 的位置执行 读取 期间 ,操作系统已经向 SQL Server 返回了错误 23(数据错误(循环冗余检查)。)。
- 在SQL SERVER中,如何将表的一个字段存成一个文件???
- SUM 查询求和以及列表显示问题
- (八百里加急)SQL2005群集能否访问多个盘符???
- 请教如何在sql 2000上用代码获得本机的硬盘和主板的序列号
- 路過走過,請各位看一看這個問題!!!!!!!!
- BULK INSERT 插入文本的问题??
- sql-dmo错误
- SELECT DISTINCT的简单问题
- 应该很简单的,请各位大神指教,第一次遇到这类要求,急,在线等
case
when xh like '__000000' then '00000000'
when xh like '____0000' then SUBSTRING(xh,1,2)+'000000'
when xh like '______00' then SUBSTRING(xh,1,4)+'0000'
else SUBSTRING(xh,1,6)+'00'
end xh1
from (
select '35000000' xh
union all
select '35010000' xh
union all
select '35010100' xh
union all
select '35010101' xh
union all
select '35010201' xh
union all
select '35020000' xh
union all
select '35010200' xh
) aa结果
xh xh1
35000000 00000000
35010000 35000000
35010100 35010000
35010101 35010100
35010201 35010200
35020000 35000000
35010200 35010000
0001
00010001
000100010001
000100010002
00010002
000100020001
0002
00020001
这样的对于节点层级关系少一点的比较好