一个跟临时表差不多的变量 无 declare @t table(id int identity,col varchar(4))declare @sql varchar(60)set @sql='吕布赵云马超典韦关羽张飞许褚黄忠颜良文丑庞德孙策'declare @i int;set @i=1declare @n int;set @n=2 --定义分段长度while(@ilen(@sql))be
一个跟临时表差不多的变量declare @t table(id int identity,col varchar(4))
declare @sql varchar(60)
set @sql='吕布赵云马超典韦关羽张飞许褚黄忠颜良文丑庞德孙策'
declare @i int;set @i=1
declare @n int;set @n=2 --定义分段长度
while(@i<len(@sql))
begin
insert into @t select substring(@sql,@i,@n)
set @i=@i+@n
end
select * from @t
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号