createtable student(
id number(15)primarykey,
name nvarchar(50)notnull );
createorreplace procedure get_name(student_id innumber, student_name out varchar) is begin select name into student_name from student where id = student_id; end;
commit;
2. Java代码
package com.dlut.zxf.test;
importjava.sql.*;
publicclass Test { publicstaticvoid main(String[] args){ String classDriver ="oracle.jdbc.driver.OracleDriver"; String dbURL ="jdbc:oracle:thin:@localhost:1521:xe"; String user ="scott"; String password ="tiger";