我有以下可打印記錄參數的plsql腳本。 有沒有辦法打印只是通過country_record
的所有列值。 我的意思是,我不想寫所有列名狀country_record.country_id
僅通過PLSQL打印所有列值
DECLARE
country_record countries%ROWTYPE;
countryid countries.country_id%TYPE;
BEGIN
countryid := &countryid;
SELECT *
INTO country_record
FROM countries
WHERE country_id = countryid;
DBMS_OUTPUT.put_line ('id: ' || country_record.country_id);
END;
你會發現你的答案在這裏:http://stackoverflow.com/questions/8717251/print-record-fields-in-pl-sql –