--触发器学习ALTER trigger 触发器名 on 表1 for insert as begin if (select count(1) from 表1)=0 print '未插入数据' else insert into 表2(字段 )select 对应字段 from ins...
分类:
其他好文 时间:
2015-12-09 16:57:10
阅读次数:
137
当有未更新成功的项,M3会以后缀为.lastUpdated保存未更新成功的项执行下面的操作可清楚这些项Unixfind ~/.m2 -name "*.lastUpdated" -exec grep -q "Could not transfer" {} \; -print -exec rm {} \....
分类:
其他好文 时间:
2015-12-08 22:11:06
阅读次数:
149
二、初始python1、第一句python代码>>> print 'hello world!!!'hello world!!!2、python解释器声明#!/usr/bin/env python3、编码以及编码声明# _*_ coding:utf-8 _*_4、注释单行注释#''' '''多行注释5...
分类:
其他好文 时间:
2015-12-08 21:50:42
阅读次数:
182
1 class TestA(object): 2 def __init__(self): 3 print("A is initing"); 4 def foo(self): 5 print("foo"); 6 7 class Tes...
分类:
编程语言 时间:
2015-12-08 17:45:25
阅读次数:
229
1、必备#### 第一波 ####def foo(): print 'foo' foo #表示是函数foo() #表示执行foo函数 #### 第二波 ####def foo(): print 'foo' foo = lambda x: x + 1 foo() # 执行下...
分类:
编程语言 时间:
2015-12-08 14:17:51
阅读次数:
278
#!/bin/bash
#byLC
#DIR=/root
DIR=/server/scripts
YUANFILE=hins423437.tar.gz
BAKFILE=hins423437_xtra_20.*.tar.gz
LC(){
if[`ls-l$DIR|grep"${BAKFILE}"|wc-l`-eq1]
then
DUYUAN=`ls-l$DIR|grep"${YUANFILE}"|awk‘{print$5}‘`
DUBAK=`ls-l$DIR|grep"${BAKFILE}"|awk‘{prin..
分类:
系统相关 时间:
2015-12-08 07:28:12
阅读次数:
314
-eq:等于-ne:不等于-gt:大于-lt:小于-le:小于或等于-ge:大于或等于catfile.txt|awk‘$2>="09:03:00"‘awk如何取反catfile.txt|awk‘$3>="09:03"‘|awk‘{$2="";print}‘不要第二列内容
分类:
系统相关 时间:
2015-12-08 02:05:02
阅读次数:
197
我们先看三段C++程序:一、line1的源码line1.h1 #ifndef _LINE_1_H 2 #define _LINE_1_H 3 void line1_print(const char *strMsg);4 #endifView Codeline1.cpp1 #include "...
分类:
其他好文 时间:
2015-12-08 00:30:43
阅读次数:
227
1. 第一个程序:#!/usr/bin/perlprint "hello world.\n";2. 第二个程序#!/usr/bin/perluse 5.010; #告诉perl要使用5.010版本的新特性say "hello world."; #与print效果一样,只是不需要“\n”即可换行3. ...
分类:
其他好文 时间:
2015-12-07 22:35:10
阅读次数:
217
用户列表 先启动FindUserList array = (ArrayList)obj; //遍历 for(User u : array) { out.print(u.getUserID() + "\t " + u.getUserName...
分类:
其他好文 时间:
2015-12-07 22:26:36
阅读次数:
257