12 2011 档案

摘要:表 pdzb2 已经建立了。~~~~~~~~~~~~~~ -----------------------------------华丽的分割线------------------------------------------- ----声明需要的变量 declare @sql varchar(2000), @TypeID int, @gys... 阅读全文
posted @ 2011-12-25 13:24 忙碌在路上 阅读(364) 评论(0) 推荐(0)
摘要:---切入数据库 USE zhangbei ----自定义函数定义 create function perimeter (@S numeric(38,20)) returns numeric(38,20) as begin declare @pi numeric(38,20) set @pi = '3.1415' return (select ... 阅读全文
posted @ 2011-12-14 10:16 忙碌在路上 阅读(528) 评论(0) 推荐(0)
摘要:今天在群里看到有人提问 怎么实现如下图的功能,很明显,如果我们手工插的话,费时费力,那何不来个循环判断插入了,这使我想起了 while 语句 说做就做 于是 写出了 下面的代码: create table rq (dt datetime , wb varchar(5) ) declare @dt datetime declare @n ... 阅读全文
posted @ 2011-12-11 14:28 忙碌在路上 阅读(1265) 评论(0) 推荐(0)