Oracle record declaration method

Source: Internet
Author: User

Oracle record declaration method Oracle record Declaration has only three methods: 1. the table-based record type Java code student_record student % rowtype. student is a table. After the student_record is declared, the structure is consistent with that of student. cursor-based record type Java code declare -- cursor students_cursor is select * from student; -- declares the cursor-based record student_record students_couror % rowtype; -- defines the type of the cursor variable type students_cursor is ref cursor return student % rowtype; -- declares the cursor variable student_cur_var student_cursor; -- declares that the cursor variable-based record contains limit % rowtype, oracle allows you to declare a cursor-based variable by adding % rowtype to the display cursor or cursor variable. 3. the custom record type can be type... is record statement to define the record type, and then declare a record. java code declare type student_rt is record (id student. id type, name student. name % type, total number (5, 2); student_record student_rt;

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.