自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

根据排序定义表排序数据

根据排序定义表排序数据 测试数据:create table tb1(id int,col1 varchar(10),col2 int)insert tb1 select 1,'aa',111union all select 2,'aa',111union all select 3,'aa',111union all select 4,'bb',222union all select 5,'bb'...

2005-03-21 19:08:00 75

报表统计

/*--原帖地址:http://community.csdn.net/Expert/topic/3826/3826130.xml?temp=.4175836--*/ --示例数据--建企业名称表CREATE TABLE qiye (qiyemingcheng char(16),xingzhi char(4),shunxu int)insert into qiye select '企业甲','国有'...

2005-03-16 10:41:00 138

根据当月数据库自动生成下个月数据库--3

--创建一个每月最后一个工作日执行的作业,调用上述存储过程实现自动创建数据库 use mastergo --设置 SQL Agent 服务为自动启动exec msdb..sp_set_sqlagent_properties @auto_start=1go --创建作业exec msdb..sp_add_job @job_name=N'自动建库处理' --创建作业步骤declare @s...

2005-03-16 10:34:00 56

根据当月数据库自动生成下个月数据库--2

--方法2. 脚本复制use mastergo if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[sp_ProcCopyDb]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)drop procedure [dbo].[sp_ProcCopyDb]GO /*--数据...

2005-03-16 10:32:00 76

根据当月数据库自动生成下个月数据库--1

/*--原帖地址:http://community.csdn.net/Expert/topic/3818/3818559.xml?temp=.9593317--*/ /*--处理要求 在sql数据库里有一个名为Pos200502的Database,每个月会有一个类似于这样名称(Pos200502 Pos200503)的database 我该如何利用sql server的自动作业+一段存储过程,实现...

2005-03-16 10:30:00 77

逐记录导出text/ntext字段值为文本文件

/*--原帖地址:http://community.csdn.net/Expert/topic/3851/3851741.xml?temp=.4726831--*/ --测试数据create table tb(id varchar(50) primary key,detail text)insert tb select 'aaa','11111'union all select 'bbb','4...

2005-03-16 09:30:00 73

随机排序分页处理示例

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

2005-03-16 09:18:00 529

无规律自定义分段的分类汇总+交叉表处理

/*--原帖地址: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...

2005-03-16 09:02:00 102

逐月对比的交叉表处理

/*--原帖地址: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...

2005-03-16 08:52:00 91

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除