Oracle learning notes: stored procedures with returned lists

Source: Internet
Author: User
Create sqlCREATETABLEstudent (student_idNUMBERPRIMARYKEY, student_namevARCHAR2 (30) NOTNULL) inserti

Create table SQL create table student (student_id number primary key, student_name vARCHAR2 (30) not null) insert I

Oracle learning notes: stored procedures with returned lists

[Date: 2012-01-03] Source: Linux Author: zxingchao2009 [Font:]

Table creation SQL

Create package

Java call

Output result:

Student ID = 1, Student Name = John
Student ID = 2, Student Name = Li Si
Student ID = 3, Student Name = Wang Wu
Student ID = 4, Student Name = ma 6
Student ID = 5, Student Name = Sun Qi
Student ID = 6, Student Name = wang ba

,
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.