SQL BASICS
SQL BASICS
CREATE Table
This query creates a table named employees with columns for id, name, and salary.
name VARCHAR(100),
salary DECIMAL(10, 2)
);
DESC employees;
2. INSERT Data
This query inserts a new record into the employee
3. UPDATE Data
This query updates an existing record in the employees table (updating the salary for the employee
with id = 1).
UPDATE employees
WHERE id = 1;