PL/SQL Records的主要用途和用途是什么,我们应该在哪里使用PL/SQL Records
declare
type locationRecordType is record (
streetAddress varchar2(40),
postalCode varchar2(12),
city varchar2(30),
stateProvince varchar2(25),
countryID char(2) not null := 'US'
);
myLocation locationRecordType;
begin
myLocation.streetAddress := '4564 Culloden';
myLocation.postalCode := '20190';
myLocation.city := 'Regina';
myLocation.stateProvince := 'SK';
dbms_output.put_line( 'MY LOCATION IS:' );
dbms_output.put_line( myLocation.streetAddress );
dbms_output.put( myLocation.city||', '||myLocation.stateProvince )
dbms_output.put_line( ' '||myLocation.postalCode );
dbms_output.put_line( myLocation.countryID );
end;