随笔分类 - Oracle
摘要:import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.Statement; //自定义jdbc工具类。 //目的是简化jdbc开发。 public class JDBCUtil...
阅读全文
摘要:--复制表 create table emp as(select * from scott.emp); select * from emp; --Demo1创建存储过程,实现将emp表comm为空时,替换成0 create or replace procedure update_emp_comm as begin update emp set comm='1' where comm='0'; d...
阅读全文
摘要:同义词: -- e是scott.emp表的临时别名 select e.* from (select * from scott.emp) e; --创建私有同义词 create synonym myemp for scott.emp; select * from system.myemp; --创建公有同义词 create public synonym pub_emp for ...
阅读全文

浙公网安备 33010602011771号