提交 9af863be authored 作者: Thomas Mueller's avatar Thomas Mueller

Documentation.

上级 ea6fad96
......@@ -53,7 +53,6 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call
setTrace(session.getTrace(), TraceObject.CALLABLE_STATEMENT, id);
}
/**
/**
* Executes a statement (insert, update, delete, create, drop)
* and returns the update count.
......
......@@ -34,9 +34,16 @@ public class TriggerSample {
stat.execute("CREATE TABLE INVOICE(ID INT PRIMARY KEY, AMOUNT DECIMAL)");
stat.execute("CREATE TABLE INVOICE_SUM(AMOUNT DECIMAL)");
stat.execute("INSERT INTO INVOICE_SUM VALUES(0.0)");
stat.execute("CREATE TRIGGER INV_INS AFTER INSERT ON INVOICE FOR EACH ROW CALL \"org.h2.samples.TriggerSample$MyTrigger\" ");
stat.execute("CREATE TRIGGER INV_UPD AFTER UPDATE ON INVOICE FOR EACH ROW CALL \"org.h2.samples.TriggerSample$MyTrigger\" ");
stat.execute("CREATE TRIGGER INV_DEL AFTER DELETE ON INVOICE FOR EACH ROW CALL \"org.h2.samples.TriggerSample$MyTrigger\" ");
stat.execute("CREATE TRIGGER INV_INS " +
"AFTER INSERT ON INVOICE FOR EACH ROW " +
"CALL \"org.h2.samples.TriggerSample$MyTrigger\" ");
stat.execute("CREATE TRIGGER INV_UPD " +
"AFTER UPDATE ON INVOICE FOR EACH ROW " +
"CALL \"org.h2.samples.TriggerSample$MyTrigger\" ");
stat.execute("CREATE TRIGGER INV_DEL " +
"AFTER DELETE ON INVOICE FOR EACH ROW " +
"CALL \"org.h2.samples.TriggerSample$MyTrigger\" ");
stat.execute("INSERT INTO INVOICE VALUES(1, 10.0)");
stat.execute("INSERT INTO INVOICE VALUES(2, 19.95)");
......
......@@ -669,4 +669,4 @@ ooq exceeded eye hannibal stels garringer czech prevention propagate
compromise portion nodded rapping door stealing napping artifacts lore
pondered curious muttered quaint chamber nearly unwrapped flows weary volume
tapping gently dreary wrapping tis moger udt chafik outfile geom scalable
highly cloud infrastructure elton wayne
highly cloud infrastructure elton wayne explanation berne iterates
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论