Chapter 4: Data Manipulation Language (DML)
Insert
INSERT INTO tablename [(columnname,...)]
VALUES (columnname, ....)INSERT INTO acctmanager
VALUES ('T500', 'NICK', 'TAYLOR', '05-SEP-09', 42000, 3500, 'NE');
INSERT INTO acctmanager (amid, amfirst, amlast, amedate, amsal, amcomm, region)
VALUES ('T500', 'NICK', 'TAYLOR', '05-SEP-09', 42000, 3500, 'NE');
INSERT INTO acctmanager (amid, amfirst, amlast, amedate, amsal, amcomm, region)
VALUES ('T500', 'NICK', 'TAYLOR', SYSDATE, 42000, 3500, 'NE');
INSERT INTO acctmanager (amid, amfirst, amlast, amedate, amsal, amcomm, region)
VALUES ('T500', 'NICK', 'TAYLOR', DEFAULT, 42000, 3500, 'NE');
INSERT INTO acctmanager (amid, amfirst, amlast, amedate, amsal, amcomm, region)
VALUES ('T500', 'NICK', 'TAYLOR', NULL, 42000, 3500, 'NE');
INSERT INTO acctmanager (amid, amfirst, amlast, amsal, amcomm, region)
VALUES ('T500', 'NICK', 'TAYLOR', 42000, 3500, 'NE');
ALTER TABLE acctmanager MODIFY (amsal DEFAULT ON NULL 1);
INSERT INTO acctmanager (amid, amfirst, amlast, amedate, amsal, amcomm, region)
VALUES ('T500', 'NICK', 'TAYLOR', NULL, NULL, 3500, 'NE');
INSERT INTO acctmanager (amid, amfirst, amlast, amedate, amsal, amcomm, region)
VALUES ('T500', 'NICK', 'O''hara', NULL, NULL, 3500, 'NE');
SELECT table_name, column_name, data_default, default_on_null
FROM user_tab_columns
WHERE table_name = 'acctmanager';Update
Delete
Merge
Transaction Control
Commit
Rollback
SavePoint
Last updated