ORACE pl/sql记录(RECORD)
时间:2011-02-27 来源:凡庭
TYPE RECO_TYPE IS RECORD
(
ID T_TABLE.ID%TYPE,
NAME T_TABLE.NAME%TYPE,
DESCRIPTION T_TABLE.DESCRIBE%TYPE
);
MY_TYPE RECO_TYPE;
BEGIN
SELECT ID,NAME,DESCRIPTION INTO MY_TYPE FROM T_TABLE WHERE ID=&ID;
DBMS_OUTPUT.PUT_LINE(MY_TYPE.ID);
DBMS_OUTPUT.PUT_LINE(MY_TYPE.NAME);
DBMS_OUTPUT.PUT_LINE(MY_TYPE.DESCRIPTION);
END;
相关阅读 更多 +