CRUD - Fundamentals of SQL Operation
CRUD - Fundamentals of SQL Operation
C CREATE / INSERT
R READ / SELECT
U UPDATE
D DELETE
CREATE
/*Creating Database*/
CREATE DATABASE databasename;
/*Creating Table*/
CREATE TABLE table_name (
column1 datatype,
column2 datatype,
column3 datatype,
....
);
CREATE
/*All Columns*/
INSERT INTO table_name VALUES
(value1, value2, value3, ……);
SELECT * FROM table_name;
SELECT DISTINCT column1, column2, ...
FROM table_name;
Which of the following statement contains an error ?
Be careful when updating records. If you omit the WHERE clause, ALL
records will be updated!
DELETE
DELETE FROM table_name WHERE condition;
Which of the following SQL
Statement is used to remove rows
from a table.
A. DROP
B. REMOVE ROW
C. DELETE
D. DELETE ROW
Which of the following SQL
Statement is used to remove rows
from a table.
A. DROP
B. REMOVE ROW
C. DELETE
D. DELETE ROW
THANK YOU!