代码:
-------------------------------------------------------------
//创立一个TEST表 CREATE TABLE TEST ( ID NUMBER(16) NOT NULL, NAME VARCHAR2(30) NOT NULL, PRIMARY KEY (ID) ); //拔出一条数据 INSERT INTO TEST VALUES (5, 'PHP_BOOK'); //创立一个存储进程 CREATE OR REPLACE PROCEDURE PROC_TEST ( p_id IN OUT NUMBER, p_name OUT VARCHAR2 ) AS BEGIN SELECT NAME INTO p_name FROM TEST WHERE ID = 5; END PROC_TEST; /
-------------------------------------------------------------