CSDN专家博客精华版

为人民服务!
  首页  :: 新随笔  :: 管理
上一页 1 ··· 228 229 230 231 232 233 234 235 236 ··· 521 下一页

2007年12月17日

摘要: if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[p_stuff]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)drop procedure [dbo].[p_stuff]GO/*--Ntext字段处理 模拟字符串处理函数 stuff 完成表中 ntext 字... 阅读全文

posted @ 2007-12-17 10:41 csdnexpert 阅读(86) 评论(0) 推荐(0)

摘要: if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[p_JobSet]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)drop procedure [dbo].[p_JobSet]GO/*--定时调用存储过程 创建一个在指定时间,调用指定存储过程的作业 作业执行完... 阅读全文

posted @ 2007-12-17 10:41 csdnexpert 阅读(115) 评论(0) 推荐(0)

摘要: if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[f_split]') and xtype in (N'FN', N'IF', N'TF'))drop function [dbo].[f_split]GO/*--得到字符串列表指定位置的字符 可以自定义字符串列表的分隔符 如果取数位置超出的范围,返回空字... 阅读全文

posted @ 2007-12-17 10:41 csdnexpert 阅读(93) 评论(0) 推荐(0)

摘要: if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[f_updatestr]') and xtype in (N'FN', N'IF', N'TF'))drop function [dbo].[f_updatestr]GO/*--更新字符串列表中,指定位置的字符串 更新字符串列表中,指定位置的字符串为新的值... 阅读全文

posted @ 2007-12-17 10:41 csdnexpert 阅读(86) 评论(0) 推荐(0)

摘要: 在数据库表tbl1中有一个字段Keywords,它是nvarchar类型,长度为1000,该字段的内容是所要分析的论文的关键字id??????????????????????? keywords -----------------------------------------------------------1????????????????????????? kw1;kw2;kw32??... 阅读全文

posted @ 2007-12-17 10:41 csdnexpert 阅读(87) 评论(0) 推荐(0)

摘要: 原帖地址:http://community.csdn.net/Expert/topic/3230/3230422.xml?temp=.7884485有这样的数据 字段1 字段2 2,4,23 3,6,345 23,56,4 3,3,67取数据的是查询 字段1中 条件是 4 那么在字段2 在取的是6与 67结果如下============4 64 67--... 阅读全文

posted @ 2007-12-17 10:41 csdnexpert 阅读(104) 评论(0) 推荐(0)

摘要: 原帖地址: http://community.csdn.net/Expert/topic/3236/3236660.xml?temp=.9309046 表T1(记录的是产品加工步骤的损耗情况)Cp_No(产品编码) Cp_Step(加工步骤) Cp_Shl(损耗率)001 1 0.1001 ... 阅读全文

posted @ 2007-12-17 10:41 csdnexpert 阅读(159) 评论(0) 推荐(0)

摘要: /*-- 下面是我用SQL的事件探察器设置跟踪,并生成的SQL脚本 现在有几个问题: 1.这个跟踪不会产生数据,用: select * from ::fn_trace_getinfo(1) 可以看到状态是在运行,但 c:\test.trc 始终是空文件 2.在事件探察器中设置筛选时,ObjectType 的说明是对应 sysobjects 表的 type 列,该列是字符型,但我输入字符时 ... 阅读全文

posted @ 2007-12-17 10:41 csdnexpert 阅读(113) 评论(0) 推荐(0)

摘要: /**==** 1. 自定义函数用于group by时出错 **==**/--一个简单的函数create function f_str(@str sysname,@i int)returns char(1)as begin return(substring(@str,@i,1)) endgo--下面是测试--定义测试数据declare @t table(name sysname)insert... 阅读全文

posted @ 2007-12-17 10:41 csdnexpert 阅读(144) 评论(0) 推荐(0)

摘要: 有 两个表:表1:借支姓名 日期 借支单号 借支金额 已还金额 未还余额张三 99-1-1 000001 10000 0 10000李四 99-1-2 000002 5000 0 5000张三 99-2-1 000003 6000 ... 阅读全文

posted @ 2007-12-17 10:41 csdnexpert 阅读(121) 评论(0) 推荐(0)

上一页 1 ··· 228 229 230 231 232 233 234 235 236 ··· 521 下一页