zoukankan
html css js c++ java
Sybase:TSQL按逗号分隔字符串[注:无实际用处]
DECLARE
@subSql
varchar
(
8000
),
@strType
varchar
(
50
),
@type
varchar
(
8
),
@i1
INT
,
@i2
INT
set
@subSql
=
''
set
@strType
=
'
,3,4,5,7,8,9,10,11,22,23,25,40,41,45,46,
'
set
@i1
=
charindex
(
'
,
'
,
@strType
)
set
@strType
=
substring
(
@strType
,
@i1
+
1
,
50
)
set
@i2
=
charindex
(
'
,
'
,
@strType
)
set
@type
=
substring
(
@strType
,
@i1
,
@i2
-
1
)
set
@strType
=
substring
(
@strType
,
@i2
,
50
)
print
@type
WHILE
@i2
>
1
begin
set
@subSql
=
@subSql
+
'
OOP--
'
+
@type
set
@i1
=
charindex
(
'
,
'
,
@strType
)
set
@strType
=
substring
(
@strType
,
@i1
+
1
,
50
)
set
@i2
=
charindex
(
'
,
'
,
@strType
)
set
@type
=
substring
(
@strType
,
@i1
,
@i2
-
1
)
set
@strType
=
substring
(
@strType
,
@i2
,
50
)
print
@type
end
print
@subSql
查看全文
相关阅读:
Flowplayer-Subtitle
Flowplayer-playlist
Flowplayer-Embedding
Flowplayer-Skin
Flowplayer-Setup
Flowplayer-JavaScript API
任务监控程序设计与实现总结
Spark RDD整理
oracle连接和执行流程总结
阅读《Oracle内核技术揭秘》的读书笔记
原文地址:https://www.cnblogs.com/ding0910/p/1210854.html
最新文章
c++中临时变量不能作为非const的引用参数
函数传参1
VS2010 常见的错误
VS2010调试小技巧
VS2010调试技巧
CTypedPtrList的具体用法
linux下通过sed命令直接修改文件内容
jsp 调用移动端方法
linux 查找文件和文件内容
linux 查看时间
热门文章
java 时间范围
Druid数据库密码加密
RESTEasy:@FormParam、@PathParam、@QueryParam、@HeaderParam、@CookieParam、@MatrixParam说明
webservice restful
SpringBoot整合Dubbo报错: java.lang.ClassCastException
rabbit安裝及使用
网页设计中常用的19个Web安全字体
[转]NPOI 单元格级别应用
在Outlook中修改IMAP邮件账户的存储位置
Flowplayer-encoding
Copyright © 2011-2022 走看看