分享------整理了一些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
http://topic.csdn.net/u/20080605/15/ca6b25f3-3e60-4b95-ac7e-7d7dc02354e6.html
他们设置了哪些标签:
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技巧
谁收藏了这个网址:
时间:2008-6-5 15:35:45 | 相关网摘
时间:2008-6-5 16:05:02 | 相关网摘
时间:2008-6-5 17:01:53 | 相关网摘
时间:2008-6-6 2:55:03 | 相关网摘
时间:2008-6-6 9:07:29 | 相关网摘
时间:2008-6-6 9:44:02 | 相关网摘
时间:2008-6-6 10:05:13 | 相关网摘
时间:2008-6-6 10:17:29 | 相关网摘
-07-06"里提取"70","07","
时间:2008-6-6 10:22:30 | 相关网摘
使用标签:编程,时间:2008-6-6 10:38:19 | 相关网摘
时间:2008-6-6 10:50:45 | 相关网摘
时间:2008-6-6 10:50:58 | 相关网摘
时间:2008-6-6 11:34:36 | 相关网摘
时间:2008-6-6 11:59:45 | 相关网摘
时间:2008-6-6 12:03:54 | 相关网摘
时间:2008-6-6 12:40:07 | 相关网摘
时间:2008-6-6 13:03:39 | 相关网摘
时间:2008-6-6 13:18:20 | 相关网摘
时间:2008-6-6 13:19:53 | 相关网摘
declare @srvid int,@dbsid int --定义服务器、数据库集id
时间:2008-6-6 13:30:19 | 相关网摘
使用标签:sql,时间:2008-6-6 13:35:43 | 相关网摘
时间:2008-6-6 13:37:52 | 相关网摘
时间:2008-6-6 13:38:01 | 相关网摘
时间:2008-6-6 14:05:16 | 相关网摘
时间:2008-6-6 14:22:10 | 相关网摘
使用标签:SQL,时间:2008-6-6 14:49:55 | 相关网摘
时间:2008-6-6 14:59:33 | 相关网摘
时间:2008-6-6 15:34:55 | 相关网摘
时间:2008-6-6 15:47:39 | 相关网摘
时间:2008-6-6 15:54:18 | 相关网摘
时间:2008-6-6 16:01:39 | 相关网摘
时间:2008-6-6 16:10:47 | 相关网摘
时间:2008-6-6 16:33:53 | 相关网摘
使用标签:sql技巧,时间:2008-6-6 16:44:55 | 相关网摘
只复制一个表结构,不复制数据
select top 0 * into [t1] from [t2]
时间:2008-6-6 16:48:36 | 相关网摘
时间:2008-6-6 16:51:33 | 相关网摘
时间:2008-6-6 17:18:26 | 相关网摘
先用下面的脚本创建一个函数
时间:2008-6-6 17:27:42 | 相关网摘
时间: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
时间:2008-6-6 19:16:17 | 相关网摘
时间:2008-6-6 19:25:15 | 相关网摘
使用标签:数据库,时间:2008-6-6 19:53:42 | 相关网摘
数据库的信息很好
时间:2008-6-6 20:32:37 | 相关网摘
时间:2008-6-6 21:33:22 | 相关网摘
时间:2008-6-6 21:38:44 | 相关网摘
时间:2008-6-7 9:20:45 | 相关网摘
时间:2008-6-7 10:10:04 | 相关网摘
时间:2008-6-7 10:29:00 | 相关网摘
时间:2008-6-7 10:29:25 | 相关网摘
SQL
时间:2008-6-7 11:29:39 | 相关网摘
时间:2008-6-7 12:48:08 | 相关网摘
时间:2008-6-7 13:01:15 | 相关网摘
时间:2008-6-7 13:20:54 | 相关网摘
时间:2008-6-7 13:45:25 | 相关网摘
时间:2008-6-7 14:54:10 | 相关网摘
时间:2008-6-7 15:15:57 | 相关网摘
sql查询语言--现在的我感觉比较难
时间:2008-6-7 16:32:26 | 相关网摘
使用标签:sql,时间:2008-6-7 19:58:29 | 相关网摘
sql大全
时间:2008-6-7 21:21:49 | 相关网摘
时间:2008-6-8 9:24:34 | 相关网摘
时间:2008-6-8 9:25:47 | 相关网摘
分享------整理了一些t-sql技巧
时间:2008-6-8 12:19:18 | 相关网摘
使用标签:SQL, 语句,时间:2008-6-8 12:33:50 | 相关网摘
SQL语句技巧
时间:2008-6-8 14:18:50 | 相关网摘
时间:2008-6-8 16:42:15 | 相关网摘
时间:2008-6-9 3:50:47 | 相关网摘
时间:2008-6-9 9:46:14 | 相关网摘
时间:2008-6-9 10:27:55 | 相关网摘
时间:2008-6-9 10:33:40 | 相关网摘
时间:2008-6-9 11:56:52 | 相关网摘
时间:2008-6-9 12:28:36 | 相关网摘
时间:2008-6-9 13:28:28 | 相关网摘
时间:2008-6-9 14:10:38 | 相关网摘
时间:2008-6-9 20:29:24 | 相关网摘
时间:2008-6-9 22:22:12 | 相关网摘
sql技巧
时间:2008-6-9 23:41:25 | 相关网摘
时间:2008-6-10 8:54:13 | 相关网摘
时间:2008-6-10 9:08:09 | 相关网摘
时间:2008-6-10 9:33:56 | 相关网摘
时间:2008-6-10 9:48:46 | 相关网摘
使用标签:学习,时间:2008-6-10 10:05:33 | 相关网摘
时间:2008-6-10 10:14:58 | 相关网摘
时间:2008-6-10 10:22:14 | 相关网摘
时间:2008-6-10 10:36:29 | 相关网摘
一些t-sql技巧
时间:2008-6-10 10:46:32 | 相关网摘
时间:2008-6-10 10:54:27 | 相关网摘
时间:2008-6-10 11:43:43 | 相关网摘
时间: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
时间:2008-6-10 12:22:29 | 相关网摘
时间:2008-6-10 12:27:38 | 相关网摘
时间:2008-6-10 13:16:33 | 相关网摘
时间:2008-6-10 13:38:49 | 相关网摘
时间:2008-6-10 14:19:19 | 相关网摘