- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Environmental Science
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- articles and Answers
- Effective Resume Writing
- HR Interview articles
- Computer Glossary
- Who is Who
How to create a table in SQL ?
The command to create a table in sql is extremely simple:
CREATE TABLE table_name (
column1 datatype,
column2 datatype,
column3 datatype,
....
);
We will start off by giving the keywords, CREATE TABLE, then we will give the name of the table. After that in braces, we will list out all the columns along with their datatypes.
For example, if we want to create a simple employee table:
CREATE TABLE employee (
name varchar(25),
age int,
gender varchar(25),
....
);
- Related Questions & Answers
- What is PL/SQL ?
- What is Primary Key in SQL ?
- How to change a table name in SQL ?
- How to Get All Data of Particular ID and Display using Core PHP 8
- How to Store Array Data To Database to a Single Column Without serialize() & json_encode() Function
- What are the types of SQL Queries ?
- How to create a database in SQL?
- What is a trigger in SQL ?
- How can I see all tables in SQL?
- How to find the nth highest salary in SQL ?
- How to create a table in SQL ?
- How to delete a row in SQL ?
- What is SQL ?
- What is join in SQL ?
- How to delete a table in SQL ?
- How to insert multiple rows in SQL ?
Advertisements
ads