Cheatography
https://cheatography.com
Create, Retrieve, Update and Delete in Oracle Database
This is a draft cheat sheet. It is a work in progress and is not finished yet.
CREATE TABLE
CREATE TABLE table_name ( |
CREATE TABLE student ( |
field_1 data_type, |
id NUMBER, |
field_2 data_type); |
name VARCHAR2(50)); |
|
INSERT
INSERT |
INSERT INTO table_name (field1, filed2) |
|
VALUES(field1_value, field2_value); |
|
SELECT
SELECT |
SELECT field1, field2..... FROM table_name |
|
WHERE condition ; |
|
UPDATE
UPDATE |
UPDATE table_name |
|
SET field_name = new_value |
|
WHHERE condition ; |
|
DELETE
DELETE |
DELETE FROM table_name |
|
WHERE condition ; |
|