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
查看全文
相关阅读:
实例代码讲解_Person
推荐一个小工具:LINQ to JavaScript (jslinq)
AJAX跨域问题解决一:使用web代理
JQuery常用方法总结(2)
对IEnumerable<T>,IDictionary<Tkey,TValue>,ICollection<T>,IList<T>的总结
C#补零
JQuery常用方法总结(1)
单一模式(Singleton)的学习
.net core 和 WPF 开发升讯威在线客服系统:调用百度翻译接口实现实时自动翻译
在“宝塔”中部署升讯威在线客服系统教程来了,只需10分钟,确实方便!
原文地址:https://www.cnblogs.com/ding0910/p/1210854.html
最新文章
C Standard Library: 8 Nonlocal Jumps: <setjmp.h>
C Standard Library:5 Utility Functions: <stdlib.h>
C Standard Library: 1 Input and Output: <stdio.h>
Environment variable ORACLE_UNQNAME not defined错误解决
Oracle用户、权限、角色管理
C Standard Library: 7 Variable Argument Lists: <stdarg.h>
C Standard Library: Error Functions
C Standard Library: 10 Date and Time Functions: <time.h>
C Standard Library: 3 String Functions: <string.h>
C Standard Library: Character Input and Output Functions
热门文章
C Standard Library: 11 Implementationdefined Limits: <limits.h> and <float.h>
C Standard Library: 6 Diagnostics: <assert.h>
C Standard Library: Direct Input and Output Functions
Log4Net使用指南
设置保存TFS登录名和密码
正则表达式
什么是浏览器的User Agent(用户代理)
使用Yahoo!web服务的json(Javascript对象标识)
YUI CSS Foundation讲座
C#中的this扩展方法与javascript中的prototype方法
Copyright © 2011-2022 走看看