方法一: Connection con = dbl.loadConnection(); strSql = "insert into table1(id,a) values (1,EMPTY_CLOB())"; dbl.executeSql(strSql); String str2 = "select a from " + " table1 where id=1"; ResultSet rs = dbl.openResultSet(str2); i
一.通过触发器的方式 CREATE OR REPLACE TRIGGER tg_test BEFORE INSERT ON Userinfo FOR EACH ROW WHEN (new.userNo is null) begin select SEQ_Userinf.nextval into:new.userNO from dual; end; 插入语句为: insert into CATEGORY_EXPERT_GRADE (CATEGORY_FK, EXPERT_FK,GRADE,SAVE