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
查看全文
相关阅读:
Ubuntu升级软件和ubuntu升级系统的命令
ASP 中如何根据数据库中取出的值来判定 checkbox或radio 的状态是否为选中
C# 根据年、月、周、星期获得日期等
鼠标右击事件
【原创】VB利用堆栈实现算术表达式计算
【算法】VB6实现哈夫曼编码生成的类
【算法】VB 24点计算
【算法】VB实现后缀表达式转中缀表达式
C#操作Excel替换关键字 Johan
C#递归遍历文件夹下的文件 Johan
原文地址:https://www.cnblogs.com/ding0910/p/1210854.html
最新文章
二项式反演笔记(草稿)
减少js应用的侵入性
js时间和.net时间的Ticks定义和转换
js获取LastModified Header的问题(document.lastModified)
js变量的寻址与传递
js动态在form上插入enctype=multipart/formdata的问题
map area 标签的位置
学艺不精。。。原来js中的break,continue是可以带标签的
KO的反射
python 自动输入验证码
热门文章
Python边学边用BT客户端实现之(二)Peers获取
Python边学边用BT客户端实现之(一)BitTorrent文件解析
Python边学边用BT客户端实现之(三)Peer协议设计
Winform 下创建以管理员身份运行的程序
C# 获取服务器时间
批处理获取时间[yyyymmdd]
判断程序是否由开发环境启动
Batch Confirm
http升级https之旅
ABP VNext使用Vue客户端odic登录配置identityserver4
Copyright © 2011-2022 走看看