oracle数据库:为了使ID自增,建了序列后,创建触发器:create or replace TRIGGER TRIG_INSERT_TRADE_RECODE BEFORE INSERT ON TRADE_RECODE FOR EACH ROW BEGIN :NEW.ID:=SEQ_TRADE_R...
分类:
其他好文 时间:
2014-09-11 16:51:32
阅读次数:
373
// 触发器create or replace trigger tr_sync_BD_MARBASCLASSafter INSERT or UPDATEon BD_MARBASCLASS for each rowdeclare v_cnt integer;PRAGMA AUTONOMOUS_TRAN...
分类:
数据库 时间:
2014-09-11 13:48:11
阅读次数:
361
<script>
????function?getLocalTime(nS)?{?
????????return?new?Date(parseInt(nS)?*?1000).toLocaleString().replace(/年|月/g,?"-").replace(/日|下午|上午/g,?"");?
????}?
???...
分类:
Web程序 时间:
2014-09-11 11:26:12
阅读次数:
251
场景
在一个类中我们经常会下定义一些类型码,如:
public static final int INVALID=0;
public static final int VALID=1;
我们可以将这些数值转换为一个类
前提条件:
只有当类型码是纯粹数据时(类型码不会在Switch语句中引起行为的变化时),你才能以类来取代它
修改前...
分类:
其他好文 时间:
2014-09-10 23:57:01
阅读次数:
607
包头:
create or replace package ProdureceCursorData is
type curtype is ref cursor;
type type_record is record
(
deptno NUMBER(2) ,
dname VARCHAR2(14),
loc VARCHAR2(13)
);
PR...
分类:
数据库 时间:
2014-09-10 22:30:51
阅读次数:
374
去除空格方法:"xyz".strip()#returns"xyz""xyz".lstrip()#returns"xyz""xyz".rstrip()#returns"xyz""xyz".replace(‘‘,‘‘)#returns"xyz"
分类:
编程语言 时间:
2014-09-10 19:48:21
阅读次数:
255
if I want to repeat "hello" four times as a new string-> "hellohellohellohello". I can:return new String(new char[4]).replace("\0", "hello")
分类:
编程语言 时间:
2014-09-10 19:15:20
阅读次数:
199
1.没有参数的存储过程create or replace procedure get_timeas cur_time varchar2(10);begin select to_char(sysdate,'yyyymmdd') into cur_time from dual; dbms_output....
分类:
其他好文 时间:
2014-09-10 17:23:40
阅读次数:
211
Just follow this:http://www.haiyun.me/archives/centos-freeradius-daloradius-ros.html, and I will list something different in CentOS7#1:CentOS7 replace...
分类:
其他好文 时间:
2014-09-10 17:14:00
阅读次数:
231
标题这样不知道合适不合适。具体的情况是这样的:网站要增加关键字链接功能,然后需要对文章的内容进行正则表达式匹配并替换,然后使用了preg_replace函数。替换的程序代码如下:function ReplaceKeyword($linkDefs,$content){$linkMap = array(...
分类:
Web程序 时间:
2014-09-10 15:30:50
阅读次数:
179