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