CSDN专家博客精华版

为人民服务!
  首页  :: 新随笔  :: 管理
上一页 1 ··· 231 232 233 234 235 236 237 238 239 ··· 520 下一页

2007年12月17日

摘要: 原帖地址:http://community.csdn.net/Expert/FAQ/FAQ_Index.asp?id=207897环境:Sql Server2000 +sp4问题:select datediff(day,'20040910','20040920') --这句可以执行--而下面这句不能执行(有时也可以执行)--sub_para为varchar(8),错误信息是:从字符串转换为 ... 阅读全文

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

摘要: 原帖地址:http://community.csdn.net/Expert/topic/3428/3428792.xml?temp=.6476251--示例数据create table 表(ID int,NUM int)insert 表 select 1,2union all select 2,3union all select 3,2union all select 4,2union all... 阅读全文

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

摘要: 原帖地址:http://community.csdn.net/Expert/topic/3434/3434688.xml?temp=3.246486E-03--测试数据create table 单位表 (单位代码 varchar(10),单位名称 varchar(50))insert 单位表 values('01' ,'中国单位') --1级insert 单位... 阅读全文

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

摘要: 原帖地址:http://community.csdn.net/Expert/topic/3452/3452577.xml?temp=.1377375--示例数据create table [table](A sysname,B varchar(10))insert [table] select 'table_1','a'union all select 'table_2','b'cre... 阅读全文

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

摘要: 原帖地址:http://community.csdn.net/Expert/topic/3485/3485588.xml?temp=.8813745--示例数据create table sale(date datetime,code varchar(10),amt int)insert sale select '2004-10-22','aa',15000union all select ... 阅读全文

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

摘要: 原帖地址:http://community.csdn.net/Expert/topic/3663/3663934.xml?temp=.9100458--测试数据create table PROJECT(id int,name nvarchar(20),parent_id int)insert PROJECT select 1,'所有项目',nullunion all select 2... 阅读全文

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

摘要: 原帖地址:http://community.csdn.net/Expert/topic/3662/3662135.xml?temp=.4289972--测试数据create table tb(ID int primary key,grade varchar(10),uptime datetime)insert tb select 1 ,'a','2004-12-11'union all sel... 阅读全文

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

摘要: /*--原帖地址:http://community.csdn.net/Expert/topic/3841/3841808.xml?temp=.4308588--*/--测试数据create table tb(year int,month int,No varchar(10),Name varchar(10),部门 varchar(10),工资 int)insert tb select 2004... 阅读全文

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

摘要: /*--原帖地址:http://community.csdn.net/Expert/topic/3845/3845290.xml?temp=.3689386--*/--测试数据create table tb(编号 int,性质 varchar(10),数量 int,指标1 decimal(10,1),指标2 decimal)insert tb select 1 ,'00' ,10,1.1 ,1... 阅读全文

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

摘要: /*--原帖地址:http://community.csdn.net/Expert/topic/3845/3845647.xml?temp=.7272455--*//*--处理要求用如下语句可以实现随机排序:select * from xiaofei where status=1 order by newid()这样的话每次用户刷新页面排序就会变.现在我想做成不同用户进来页面看到的排序都不一样... 阅读全文

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

上一页 1 ··· 231 232 233 234 235 236 237 238 239 ··· 520 下一页