From d91bad7d2f842c691c63d274e82f910aa8cac408 Mon Sep 17 00:00:00 2001 From: Ashwani Kumar <38505724+ashwanimehra@users.noreply.github.com> Date: Wed, 19 Dec 2018 15:56:43 +0530 Subject: [PATCH] Added basic information (#25293) * Added additional basic information * Removed extra line break --- .../sql/sql-create-table-statement/index.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/guide/english/sql/sql-create-table-statement/index.md b/guide/english/sql/sql-create-table-statement/index.md index 3f60b86c40..bbc2af0306 100644 --- a/guide/english/sql/sql-create-table-statement/index.md +++ b/guide/english/sql/sql-create-table-statement/index.md @@ -9,11 +9,19 @@ A table is a group of data stored in a database. To create a table in a database you use the `CREATE TABLE` statement. You give a name to the table and a list of columns with its datatypes. +##### SYNTAX ##### +```sql +CREATE TABLE table_name(Attribute1 Datatype, + Attribute2 Datatype, + ........); ``` -CREATE TABLE TABLENAME(Attribute1 Datatype, Attribute2 Datatype,........); -``` +here: + * Attribute1, Attribute2... -> Column Name + * Datatype... -> type of value you want to column have. For eg. int(size), char(size), Varchar(size),etc. + Here’s an example creating a table named Person: + ```sql CREATE TABLE Person( Id int not null, @@ -31,5 +39,5 @@ A column can be `not null` or `null` indicating whether it is mandatory or not. #### More Information: - +[SQL | CREATE](https://www.geeksforgeeks.org/sql-create/)