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
查看全文
相关阅读:
DOS常用命令
SQL查询优化:详解SQL Server非聚集索引(转载)
SQLServer索引
SQL注入技术专题—由浅入深【精华聚合贴】
DVWA 1.9 通关秘籍
高手养成计划基础篇-Linux第二季
【摩斯电码】我是如何通过一张小纸条渗透进了妹子的心
阿里旗下蚂蚁金服副总:有望3-5年内消灭伪基站
【病毒分析】对一个vbs脚本病毒的分析
【安全热点】阿里巴巴月饼门,观点两极化,孰对孰错?
原文地址:https://www.cnblogs.com/ding0910/p/1210854.html
最新文章
logistic回归(一)
转:Logistic regression (逻辑回归) 概述
浙大某同学参加阿里巴巴大数据竞赛的分享
configure: error: XML configuration could not be found
吝啬的国度
iOS: 学习笔记, Swift名字空间
【Android界面实现】SlidingMenu最新版本号使用具体解释
list双向链表容器
【翻译自mos文章】在12c数据库中,哪种audit trail 受到支持?
批量更新
热门文章
使用线程间通信之条件变量
_DataStructure_C_Impl:求图G中从顶点u到顶点v的一条简单路径
三个简单的问题,让你顺势而为
python os.system重定向stdout到变量 ,同时获取返回值
从使用os.system)在python命令(重定向标准输入输出
SyntaxError: can't assign to operator
plsql 免oracle客户端安装
KVM虚拟机内无agent情况下的监控方法
seafile文档
kvm详细介绍
Copyright © 2011-2022 走看看