java学习笔记——第8天

来源:互联网 发布:己知a b c=1,求证 编辑:程序博客网 时间:2024/05/22 02:03

ORA-12514 TNS 监听程序当前无法识别连接描述符中请求服务 的解决方法

重新配置一下监听器即可

配置和移植工具——net configuration assistant

 

总结SQL语句写法:

(1)结果出现在select后面

(2)从里往外写

 

比普通员工的最高薪水还要高的经理人的名字(注意空值)

select t.ename from

   (select ename,sal from emp

   where empno in (select mgr from emp)) t

where t.sal>(select max(t.sal) from empt

where t.empno not in (select mgr from empwhere mgr is not null))

 

创建用户并让其操作相应的表

(1)备份用户

(2)创建用户,授予权限

(3)导入数据

 

Insert

可以插入单条记录,或者整张表

insert into emp2values(7935,'jobs','ceo',7839,to_date('19810710','yyyymmdd'),2000,200,10);

insert into emp2 select * from emp;

 

Rollback回退

0 0