当前位置: 代码迷 >> Sql Server >> sqlserver 存储过程 把字符串分割成固定长度存入临时表中
  详细解决方案

sqlserver 存储过程 把字符串分割成固定长度存入临时表中

热度:56   发布时间:2016-04-24 08:53:08.0
sqlserver 求一个存储过程 把字符串分割成固定长度存入临时表中
sqlserver 求一个存储过程 把字符串分割成固定长度存入临时表中
------解决思路----------------------
不好意思,上面有一个错误,修改后为

--判断是否存在存储过程usp_Approve,若存在就删除
if OBJECT_ID('usp_Segmentation','p') is not null
begin
   drop proc usp_Segmentation
end
go
create proc usp_Segmentation 
as
begin
select LEFT('zifuchuan','5') a,RIGHT('zifuchuan','5') b
into #temp
--select * from #temp
end
  相关解决方案