0% found this document useful (0 votes)
14 views5 pages

Mysql 123

Uploaded by

harshmaurya205
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views5 pages

Mysql 123

Uploaded by

harshmaurya205
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

EXPLANATION

DATA TYPE

 INT (INTEGERS) :
 It Contains A Number Without Decimals

ATTRIBUTES

 UNIQUE :
 In The Data Every Row May Have Different – Different Data
 Mysql Statement Add Not Null Attributes With Unique Attributes Automatically.
 (Sab Student Ko Different Registration Number.)
 ST_RN INT UNIQUE,

DATA TYPE

 VARCHAR (VARIABLE CHARACTER) :


 It Contain Large Number Of Character In The Data .
 Example : 1] A , B , C , D , E , F , G , H , I ……….

2] Variable(30) : 30 Character Likh Sakhte Hai Ya Fir Usse Jayeda (Character Number Is Not
Fixed

ATTRIBUTIES

 NOT NULL :
 If Can Use In Any Column
 Not Null Means A Column Of The Data Should Not Be Empty
 Not Null Means We Have To Fill The Data Complusory.
 SNAME VARCHAR(25) NOT NULL,
DATA TPYE

 TINYINT :
 It Is Used To Store Very Small Digits Number
 Address Ke Andar Number Jayeda Bade Use Nhi Hote Hai

ATTRIBUTES

 UNSIGNED :
 Olny Positive Number .. ….It Will Not Take Negative Number.
 ADDR TINYINT(2) UNSIGNED,

ATTRIBUTES

 DEFAULT :
 It Is Used To Add Automatically A Data In The Record
 Bcom Word Automatically Record Ke Andar Aa Jayega ,
 STRM VARCHAR(5) NOT NULL DEFAULT”BCOM” ,

DATA TYPES

 DECIMAL :
 It Is Used To Store A Number With Decimal
 Example : 1234567.00 [7 Number Ke Baad Decimal (Point) Aayega Fir 2 Digits Aur Aayege
 We Can Write Is As Decimal (9 , 2) ] Fees Paid Me 7 Number After That 2 Decimal Number .
 F_PDD DECIMAL (9,2)

DATA TPYES

 BOOLEAN :
 It Is Used To Store The Posibilities
 Example : Yes / No ……True / False …….Male / Female……… Absent / Present Ect
 Sms Aaya Hai Ya To Nhi Aaya Hai .
 SMS BOOLEAN ;
ATTRIBIUTES

 PRIMARY KEY & AUTO INCREMENT:


 Primary key ensures that each row contain different record.
 It does not accept same value in the record
 Employees id same Nhi Hona chahiye
 AUTO INCREMENT:
 It automatically generates the unique number
 Primary key and auto increment should use together
 We can use it differently
 (EMP_NO Int primary key auto_increment,

 ENAME VARCHAR(20),

DATA TYPE

 ENUM
 It is a special data type,
 Option laa sakhte Hai data type me
 Example : data me ya to sirf sales , pur , acc hi aan chahiye (this 3 are option)
 Dept enum (‘SALES’ , ‘ PUR’ , ‘ ACC’));

You might also like