update scott.emp set sal= ( select sal+300 from scott.emp where empno=7599 ) where empno=7599;
SQl 源代码
结构化查询语言(StructuredQueryLanguage)简称SQL,是一种特殊目的的编程语言,是一种数据库查询和程序设计语言,用于存取数据以及查询、更新和管理关系数据库系统。
select empno,ename,job from scott.emp where job
select * from scott.emp where job='MANAGER' and sal2000; select * from scott.emp where job!='MANAGER' or sal2000; select *…
select empno 编号,ename 姓名,job 工作,sal 薪水 from scott.emp
select * from scott.emp;
select * from scott.emp where job='MANAGER'; select * from scott.emp where sal=1100; select * from scott.emp w…
select empno,ename,sal,mgr,sal+mgr from scott.emp
select distinct job from scott.emp
select empno,ename,job from scott.emp
select mgr, mgr-7800,sign(mgr-7800) from scott.emp;