![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据库
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))goinsert into tb_goods value...2011-07-13 14:13:13 · 81 阅读 · 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 · 267 阅读 · 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 · 188 阅读 · 0 评论 -
一段关于查询承运商信息的存储过程
仅供体会,无商业用途 (^_^)---------------------------------------------------view-->vt_cysKh-----------------------------------------------------if exists (select * from sysobjects where name = 'vt_cysKh...2011-07-13 14:32:09 · 134 阅读 · 0 评论