PL / SQL database operations

INSERT

Format is as follows:

INSERT INTO DEPT(DNAME,DEPTNO)

VALUES('A',10)

If you insert the value tables, do not write a specific value.

Queries can also be null;

&: May be input through the keyboard;

It may also be inserted into another table in the query with the data out

update

Format (update..set ..)

UPDATE EMP

SET JOB='MANAGER'

WHERE ENAME='MARTIN'

1. This command can be changed a plurality of rows; a plurality of columns of data

DELETE

format

DELETE FROM EMP

WHERE EMPNO='7654

Transaction control commands (things should be said that this file)

'Commit; you want to submit this order, or to modify are temporary;

SET AUTOCOMMIT ON; (automatic setting)

ROLLBACK (Rollback command)

 

Published 153 original articles · won praise 15 · Views 150,000 +

Guess you like

Origin blog.csdn.net/beyond911/article/details/103746149