首页 新闻 论坛 群组 Blog 文档 下载 读书 Tag 网摘 搜索 .NET Java 游戏 视频 人才 外包 数据库 第二书店 程序员

分享------整理了一些t-sql技巧


1、 获取元素个数的函数


create function getstrarrlength (@str varchar(8000))
returns int
as
begin
declare @int_return int
declare @start int
declare @next int
declare @location int
select @str =',' @str ','
select @str=replace(@str,',,',',')
select @start =1
select @next =1
select @location = charindex(',',@str,@start)
while (@location <>0)
begin
select @start = @location 1
select @location = charindex(',',@str,@start)
select @next =@next 1
end
select @int_return = @next-2
return @int_return
end



他们设置了哪些标签:


Database mssql MS-SQL Server SQL SQL_t-sql技巧 sql技巧 sql技巧1 sql设计 SQL优化 SQL语句 t_sql的应用 T-SQL t-sql技巧 安全 编程 分区 分享------整理了一些t-sql技巧 获取创建脚本 技术 使用技巧 数据库 学习 语句 整理了一些t-sql技巧

谁收藏了这个网址:


shuhua收录

时间:2008-6-5 15:35:45 | 相关网摘

zzyyc收录

时间:2008-6-5 16:05:02 | 相关网摘

shirley_yue收录

时间:2008-6-5 17:01:53 | 相关网摘

hrh757收录

时间:2008-6-6 2:55:03 | 相关网摘

tianhuo_soft收录

时间:2008-6-6 9:07:29 | 相关网摘

hyqwan11112收录

时间:2008-6-6 9:44:02 | 相关网摘

logi22收录

时间:2008-6-6 10:05:13 | 相关网摘

userwjg收录

时间:2008-6-6 10:17:29 | 相关网摘

-07-06"里提取"70","07","

wxg22526451收录

时间:2008-6-6 10:22:30 | 相关网摘

greatwjl收录

使用标签:编程,时间:2008-6-6 10:38:19 | 相关网摘

aiolia911收录

时间:2008-6-6 10:50:45 | 相关网摘

amani11收录

时间:2008-6-6 10:50:58 | 相关网摘

lorui收录

时间:2008-6-6 11:34:36 | 相关网摘

visir收录

时间:2008-6-6 11:59:45 | 相关网摘

xinshijiuu收录

时间:2008-6-6 12:03:54 | 相关网摘

geto1080收录

使用标签:sql技巧,时间:2008-6-6 12:04:16 | 相关网摘

dayou123123收录

时间:2008-6-6 12:40:07 | 相关网摘

lff642收录

时间:2008-6-6 13:03:39 | 相关网摘

octopus1收录

时间:2008-6-6 13:18:20 | 相关网摘

tengfei3003收录

时间:2008-6-6 13:19:53 | 相关网摘

declare @srvid int,@dbsid int --定义服务器、数据库集id

ocan收录

时间:2008-6-6 13:30:19 | 相关网摘

revealerhehui收录

使用标签:sql,时间:2008-6-6 13:35:43 | 相关网摘

gutlgutl收录

时间:2008-6-6 13:37:52 | 相关网摘

charry0110收录

时间:2008-6-6 13:38:01 | 相关网摘

yuzhisheng收录

时间:2008-6-6 14:05:16 | 相关网摘

rockyvan收录

时间:2008-6-6 14:22:10 | 相关网摘

w4585收录

使用标签:SQL,时间:2008-6-6 14:49:55 | 相关网摘

lindalan收录

时间:2008-6-6 14:59:33 | 相关网摘

yiseeker收录

时间:2008-6-6 15:34:55 | 相关网摘

lzlalpha收录

时间:2008-6-6 15:47:39 | 相关网摘

xie279630662收录

时间:2008-6-6 15:54:18 | 相关网摘

lovehongyun收录

时间:2008-6-6 16:01:39 | 相关网摘

nghf102收录

时间:2008-6-6 16:10:47 | 相关网摘

zhongshan99收录

时间:2008-6-6 16:33:53 | 相关网摘

netfeel2008收录

使用标签:sql技巧,时间:2008-6-6 16:44:55 | 相关网摘

只复制一个表结构,不复制数据



select top 0 * into [t1] from [t2]

tianjiaoxiang收录

时间:2008-6-6 16:48:36 | 相关网摘

fanlong收录

时间:2008-6-6 16:51:33 | 相关网摘

netgyc收录

时间:2008-6-6 17:18:26 | 相关网摘

先用下面的脚本创建一个函数

ilyljj收录

时间:2008-6-6 17:27:42 | 相关网摘

heguo收录

时间:2008-6-6 18:45:33 | 相关网摘

1、 获取元素个数的函数


create function getstrarrlength (@str varchar(8000))
returns int
as
begin
declare @int_return int
declare @start int
declare @next int
declare @location int
select @str =',' @str ','
select @str=replace(@str,',,',',')
select @start =1
select @next =1
select @location = charindex(',',@str,@start)
while (@location <>0)
begin
select @start = @location 1
select @location = charindex(',',@str,@start)
select @next =@next 1
end
select @int_return = @next-2
return @int_return
end

xuStanly收录

时间:2008-6-6 19:16:17 | 相关网摘

xiaoxiao8372收录

时间:2008-6-6 19:25:15 | 相关网摘

senyo收录

使用标签:sql技巧1,时间:2008-6-6 19:28:21 | 相关网摘

gejixin收录

使用标签:数据库,时间:2008-6-6 19:53:42 | 相关网摘

数据库的信息很好

zhao1027收录

时间:2008-6-6 20:32:37 | 相关网摘

fan22176391收录

时间:2008-6-6 21:33:22 | 相关网摘

simachangan收录

时间:2008-6-6 21:38:44 | 相关网摘

Psyche_ks收录

时间:2008-6-7 9:20:45 | 相关网摘

michney收录

时间:2008-6-7 10:10:04 | 相关网摘

cole2295收录

时间:2008-6-7 10:29:00 | 相关网摘

Nigel930收录

时间:2008-6-7 10:29:25 | 相关网摘

SQL

RainySummer收录

时间:2008-6-7 11:29:39 | 相关网摘

xh57605993收录

时间:2008-6-7 12:48:08 | 相关网摘

yuji821收录

时间:2008-6-7 13:01:15 | 相关网摘

yangyibang收录

时间:2008-6-7 13:20:54 | 相关网摘

dupoutVIP收录

时间:2008-6-7 13:45:25 | 相关网摘

addwing收录

时间:2008-6-7 14:54:10 | 相关网摘

tlw112收录

时间:2008-6-7 15:15:57 | 相关网摘

sql查询语言--现在的我感觉比较难

xiaowengang收录

时间:2008-6-7 16:32:26 | 相关网摘

lyyshui收录

使用标签:ms-sql, server, sql技巧,时间:2008-6-7 16:35:09 | 相关网摘

用下面的脚本创建一个函数

qq663695753收录

使用标签:sql,时间:2008-6-7 19:58:29 | 相关网摘

sql大全

Kevin_LiuFeng收录

时间:2008-6-7 21:21:49 | 相关网摘

nuliyang收录

使用标签:SQL优化,时间:2008-6-7 23:34:21 | 相关网摘

sunyujia收录

时间:2008-6-8 9:24:34 | 相关网摘

daveywj收录

时间:2008-6-8 9:25:47 | 相关网摘

分享------整理了一些t-sql技巧

only_endure收录

使用标签:sql设计,时间:2008-6-8 12:17:58 | 相关网摘

zhaoxiaoyang5156收录

时间:2008-6-8 12:19:18 | 相关网摘

sunjiahaoz收录

使用标签:SQL, 语句,时间:2008-6-8 12:33:50 | 相关网摘

SQL语句技巧

zanfeng收录

时间:2008-6-8 14:18:50 | 相关网摘

yuwenhui_7758521收录

时间:2008-6-8 16:42:15 | 相关网摘

ilovehbfy收录

使用标签:整理了一些t-sql技巧,时间:2008-6-8 19:23:28 | 相关网摘

整理了一些t-sql技巧

suliu收录

时间:2008-6-9 3:50:47 | 相关网摘

lanlan520收录

时间:2008-6-9 9:46:14 | 相关网摘

HapBegin收录

时间:2008-6-9 10:27:55 | 相关网摘

syj3000511收录

时间:2008-6-9 10:33:40 | 相关网摘

kevinlui2008收录

时间:2008-6-9 11:56:52 | 相关网摘

yuanjianbin收录

时间:2008-6-9 12:28:36 | 相关网摘

gxj760998收录

时间:2008-6-9 13:28:28 | 相关网摘

arrow_gx收录

时间:2008-6-9 14:10:38 | 相关网摘

wx499267978收录

时间:2008-6-9 20:29:24 | 相关网摘

zhkj21589收录

时间:2008-6-9 22:22:12 | 相关网摘

sql技巧

2004v2004收录

时间:2008-6-9 23:41:25 | 相关网摘

fuda_1985收录

时间:2008-6-10 8:54:13 | 相关网摘

BRITZ收录

时间:2008-6-10 9:08:09 | 相关网摘

dlpseeyou收录

时间:2008-6-10 9:33:56 | 相关网摘

OhMyGod0512收录

时间:2008-6-10 9:48:46 | 相关网摘

jyq0105收录

使用标签:学习,时间:2008-6-10 10:05:33 | 相关网摘

Netflyhorse收录

时间:2008-6-10 10:14:58 | 相关网摘

wanglipo收录

时间:2008-6-10 10:22:14 | 相关网摘

xiaogang107收录

时间:2008-6-10 10:36:29 | 相关网摘

一些t-sql技巧

guangyang475收录

时间:2008-6-10 10:46:32 | 相关网摘

TLJewel收录

时间:2008-6-10 10:54:27 | 相关网摘

zengshaojie收录

时间:2008-6-10 11:43:43 | 相关网摘

nancun收录

时间:2008-6-10 12:02:31 | 相关网摘

Create view fielddesc
as
select o.name as table_name,c.name as field_name,t.name as type,c.length as

length,c.isnullable as isnullable,convert(varchar(30),p.value) as desp
from syscolumns

HonorsOffice收录

时间:2008-6-10 12:22:29 | 相关网摘

shuihan20e收录

时间:2008-6-10 12:27:38 | 相关网摘

possibleman收录

时间:2008-6-10 13:16:33 | 相关网摘

myzhangjia收录

时间:2008-6-10 13:38:49 | 相关网摘

xiaoyugege2007收录

时间:2008-6-10 14:19:19 | 相关网摘

BubbleKitty收录

使用标签:sql技巧,时间:2008-6-10 14:32:06 | 相关网摘


网站简介广告服务网站地图帮助联系方式诚聘英才English 问题报告
北京创新乐知广告有限公司 版权所有 京 ICP 证 070598 号
Copyright © 2000-2008, CSDN.NET, All Rights Reserved