-
Notifications
You must be signed in to change notification settings - Fork 95
Expand file tree
/
Copy path8.alter
More file actions
28 lines (16 loc) · 693 Bytes
/
Copy path8.alter
File metadata and controls
28 lines (16 loc) · 693 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
My complete SQL Masterclass Notes in Tanglish is now live! Covers 30+ topics with syntax, examples, and step-by-step explanations.
Perfect for both beginners and professionals to master SQL easily. Check it out here 👉 https://topmate.io/dataengineering/1697791
====================================================================================
drop table if exists Employees;
CREATE TABLE Employees (
EmployeeID INT PRIMARY KEY,
FirstName VARCHAR(50),
LastName VARCHAR(50)
);
desc Employees;
ALTER TABLE Employees ADD Email VARCHAR(100);
desc Employees;
alter table Employees drop column LastName;
desc Employees;
alter table Employees rename to emp_123;
desc emp_123;