博客主页:http://blog.csdn.net/minna_d
脚本实现:
1.根据key选择机房
2.根据key选择机房所对应的机器名
#!/bin/bash
declare -a machine
declare -i lines
declare -a cns
files=`ls /root/.ssh/ | grep "^cn"`
lines=1
for one...
分类:
其他好文 时间:
2015-01-22 09:31:56
阅读次数:
172
-- 声明游标;CURSOR cursor_name IS select_statement--For 循环游标--(1)定义游标--(2)定义游标变量--(3)使用for循环来使用这个游标declare --类型定义 cursor c_job is ...
分类:
数据库 时间:
2015-01-22 01:40:27
阅读次数:
228
ProjectServer界面很多客户接受不了,随便用户可以根据自己需要展示页面,但大多数国内用户喜欢确定的样式,我就是要这样的页面,不要个人定制。那只有自己再做一个项目中心的webpart嵌入,对于根据登陆用户权限展示项目一直是个难题。查询N个资料后,找出对应的SQL语句。 declare @Pe...
分类:
其他好文 时间:
2015-01-21 19:53:19
阅读次数:
190
create or replace procedure testwzm(v_gdjdm in varchar2) isv_id varchar2(10);v_xlname varchar2(100);v_count number(4);beginv_count:=0;//定义游标declare cu...
分类:
数据库 时间:
2015-01-20 17:16:54
阅读次数:
179
create function f_ygGetWeekEndCount(inMonth int(11))RETURNS intbegindeclare weekEndCount int(2) default 0;-- 要计算的月份拥有周六日的天数DECLARE monthCount int(5);-...
分类:
其他好文 时间:
2015-01-20 13:24:47
阅读次数:
169
1 #!/bin/bash 2 3 if [ $# -ne 1 ] 4 then 5 echo 'please input one ' 6 fi 7 path=$1 8 declare -A wow 9 10 while read line;11 do 12 ftype=`fil...
分类:
其他好文 时间:
2015-01-19 20:41:39
阅读次数:
149
create PROCEDURE Usp_Partition()BEGINDECLARE _time datetime;DECLARE num int;DECLARE _p VARCHAR(20)DEFAULT p;DECLARE p1 VARCHAR(20);/* 获取下一个月的第一天*/sele...
分类:
数据库 时间:
2015-01-19 18:50:35
阅读次数:
328
A tick is an event that occurs for everyNlow-level tickable statements executed by the parser within thedeclareblock. The value forNis specified using...
分类:
Web程序 时间:
2015-01-19 18:34:25
阅读次数:
225
DECLARE data_cursor CURSORFOR WITH T0 AS ( SELECT COUNT(f.DeptID) SubmitCount , f.DeptID ...
分类:
数据库 时间:
2015-01-19 00:11:46
阅读次数:
272
DECLARE @CurrentTime DATETIMEDECLARE @Start DATETIMEDECLARE @End DATETIMESET @CurrentTime = GETDATE()SET @Start = DATEADD(ms, -1, DATEADD(mm, DATEDIFF...
分类:
数据库 时间:
2015-01-19 00:11:11
阅读次数:
703