-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathShow Create Table in SQL.txt
More file actions
15 lines (14 loc) · 1.04 KB
/
Show Create Table in SQL.txt
File metadata and controls
15 lines (14 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Show Create Table
-> It shows commands which you have written while creating your table.
Syntax: SHOW CREATE TABLE table_name;
ex:show create table student;
+---------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Table | Create Table
|
+---------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| student | CREATE TABLE `student` (
`name` varchar(20) DEFAULT NULL,
`roll` int DEFAULT NULL,
`address` varchar(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci |
+---------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+