
数据库
iteye_16409
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
SQL2000行列倒置的实战例子脚本
use mastergocreate database upbs_testgouse upbs_testgocreate table tb_goods( id int identity(1,1) primary key, oid varchar(20), cnt int, price money, tp varchar(20))go insert into tb_goods value...2011-07-13 14:13:13 · 119 阅读 · 0 评论 -
在存储过程中执行SQL字符串并存入全局临时表
@Begin int, @Ending intASdeclare @sSql varchar(500),@sStr varchar(500)set @sSql= '(select * from titles where title_id is not null 'if @Begin ='1' set @sSql=@sSql+'and pub_id=''0877'''if @Ending <...2011-07-13 14:19:06 · 333 阅读 · 0 评论 -
SQL Server2000中的isNull()
下面是从SQL Server联机丛书中复制下来的 IsNull 详细说明 ISNULL使用指定的替换值替换 NULL。 语法ISNULL ( check_expression , replacement_value ) 参数check_expression 将被检查是否为 NULL的表达式。check_expression 可以是任何类型的。 replacement_value 在...2011-07-13 14:25:27 · 233 阅读 · 0 评论 -
一段关于查询承运商信息的存储过程
仅供体会,无商业用途 (^_^) ---------------------------------------------------view-->vt_cysKh-----------------------------------------------------if exists (select * from sysobjects where name = 'vt_cysKh...2011-07-13 14:32:09 · 181 阅读 · 0 评论