惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Simon Willison's Weblog
Simon Willison's Weblog
G
Google Developers Blog
Spread Privacy
Spread Privacy
I
InfoQ
V
V2EX
S
Schneier on Security
小众软件
小众软件
C
CERT Recently Published Vulnerability Notes
博客园 - 聂微东
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Stack Overflow Blog
Stack Overflow Blog
T
Threat Research - Cisco Blogs
L
Lohrmann on Cybersecurity
Recent Announcements
Recent Announcements
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Attack and Defense Labs
Attack and Defense Labs
云风的 BLOG
云风的 BLOG
The Hacker News
The Hacker News
S
SegmentFault 最新的问题
C
Cybersecurity and Infrastructure Security Agency CISA
NISL@THU
NISL@THU
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
GbyAI
GbyAI
Latest news
Latest news
S
Secure Thoughts
Project Zero
Project Zero
MongoDB | Blog
MongoDB | Blog
I
Intezer
Security Latest
Security Latest
Apple Machine Learning Research
Apple Machine Learning Research
Vercel News
Vercel News
N
Netflix TechBlog - Medium
V2EX - 技术
V2EX - 技术
量子位
T
Threatpost
T
The Blog of Author Tim Ferriss
Y
Y Combinator Blog
T
Tor Project blog
A
Arctic Wolf
Microsoft Security Blog
Microsoft Security Blog
T
The Exploit Database - CXSecurity.com
大猫的无限游戏
大猫的无限游戏
T
Tailwind CSS Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
C
Check Point Blog
博客园 - Franky
Google DeepMind News
Google DeepMind News
The Register - Security
The Register - Security
The GitHub Blog
The GitHub Blog
L
LINUX DO - 热门话题

博客园 - 老弹

列表中,将列表字段缩略显示的样式 DIV+CSS页面布局,样式中区别苹果浏览器Safari VS.NET 2008 发布站点,不带那些随机字符的网站发布插件 下拉菜单被flash挡住的最好解决方法 html导出word - 老弹 - 博客园 全球网络概况 IE不执行js脚本的解决方法 ToString格式大全 - 老弹 - 博客园 SQL语句关键字UNION小知识 关于PayPal的支付的问题 运行 Dcpromo 架设Active Directory (活动目录 )时,出现" 无法创建 GPO " 错误信息 .NET读写INI文件 document.location 这个对象包含了当前URL的信息 VBScript判断客户端是否需要下载控件 强制将在表格中将英文字母换行的CSS样式,加在表格table标签中 无法让网页另存为的代码 屏蔽IE中当图片太大时出现的图片按钮组的CSS样式 列出一个表中的某个字段重复的记录 求助 RemObjects SDK 与 Data Abstracr
分割以逗号作为分割符号的字符串并插入到表中
老弹 · 2006-05-01 · via 博客园 - 老弹

SQL语句如下:

DECLARE @temp varchar(50)
DECLARE @post int
DECLARE @endpost int
DECLARE @flag bit
SET @flag = 1
SET @post = 0
SET @temp='1,2,3,4,'

WHILE(@flag = 1)
BEGIN
     SET @endpost = charindex(',',@temp)
     IF(@endpost > 0)
     BEGIN
          INSERT INTO [str] (chr) VALUES (substring(@temp,1,@endpost-1))
          SET @temp = right(@temp,len(@temp)-@endpost)
     END
     ELSE
     BEGIN
          IF(@temp <> '')
          BEGIN
                 INSERT INTO [str] (chr) VALUES (@temp)
                 SET @flag = 0
          END
          ELSE
                 SET @flag = 0
     END
END