Professional Documents
Culture Documents
Lecture 2
Lecture 2
Lecture 2
(Lecture 2)
What is Table?
What is Field?
What is Record ?
Create Table ?
Data Type ?
2/67
What is Table?
1 Ari 27 500,000
2 Sara 20 400,000
Rows
3 Aram 35 800,000
3/39
What is field?
4/39
What is record?
5/39
What is NULL value?
Name
Muhammad
Ramen
6/39
SQL language…………………….………………………………………………......................By: Luqman Qadir
Create Table
Syntax :
CREATE TABLE table_name
)
Field_Name1 data_type,
Field_Name2 data_type,
Field_Name3 data_type,
....
(;
7
Data Types
Examples:
• Dates: datetime
8
Data Types
9
Numeric Data Types:
10
Numeric Data Types:
DATA FROM TO
TYPE
11
Date and Time Data Types
12
Character Strings Data Types
13
Unicode Character Strings Data Types:
14
Binary Data Types
15
Example
16