摘要:
CREATE PROCEDURE MYPROC(IN P1 INT, IN P2 INT DEFAULT 1, OUT out1 DUMMY) AS BEGIN out1 = SELECT :P1 + :P2 AS DUMMY FROM DUMMY; END; 调用方式: CALL MYPROC(3, 4,?); or CALL MYPROC(P1 => 3...
阅读全文
posted @ 2013-04-11 22:16
沧海-重庆
阅读(1231)
推荐(0)
编辑
摘要:
CREATE PROCEDURE getOutput( IN cnt INTEGER, IN currency VARCHAR(3), OUT output_pubs tt_publishers, OUT output_year tt_year) LANGU...
阅读全文
posted @ 2013-04-11 19:56
沧海-重庆
阅读(4599)
推荐(1)
编辑
摘要:
Books 数据: Publishers 数据: Table Type: TT_Publishers TT_Year
阅读全文
posted @ 2013-04-11 18:43
沧海-重庆
阅读(984)
推荐(0)
编辑
摘要:
<TINYINT, SMALLINT, INTEGER, BIGINT> <DECIMAL(p, s), REAL, FLOAT, DOUBLE> <VARCHAR, NVARCHAR, CLOB, NCLOB> <VARBINARY, BLOB> <DATE, TIME, TIMESTAMP> Table Type
阅读全文
posted @ 2013-04-11 18:32
沧海-重庆
阅读(1522)
推荐(0)
编辑
摘要:
首先定义local table type: CREATE TYPE <type_name> AS TABLE (<column_definition>[{,<column_definition>}...]) 在定义存储过程时类似如下使用: CREATE PROCEDURE <procedure_name> ( IN|OUT|INOUT <param_name> <type_nam...
阅读全文
posted @ 2013-04-11 00:17
沧海-重庆
阅读(1437)
推荐(0)
编辑
摘要:
语法: CREATE PROCEDURE {schema.}name {({IN|OUT|INOUT} param_name data_type {,...})} {LANGUAGE <LANG>} {SQL SECURITY <MODE>} {READS SQL DATA {WITH...
阅读全文
posted @ 2013-04-11 00:14
沧海-重庆
阅读(4127)
推荐(0)
编辑