Find Affordable Web Hosting Providers - Tophosts.com

Go Back   Web Hosting Forum - Webhosting Discussions at TopHosts.Com > Technical Hosting Forum
User Name
Password



Reply
 
Thread Tools Display Modes
Old 11-15-2011, 04:59 AM   #1
Edwige
Newbie
 
Join Date: Nov 2011
Posts: 2
Edwige is on a distinguished road
Default Mysql programs for BE IT students Bangalore

SQL PRIMARY KEY Constraint
The PRIMARY KEY is used to uniquely identifies each record in a table.
Primary keys must contain the unique values in a table.
A primary key contains column cannot contains the NULL values.
Each table should have a primary key column.
Each table can have only ONE primary key column.
MySQL:
Syntax:
CREATE TABLE Persons
(
P_Id int NOT NULL,
LastName varchar(255) NOT NULL,
City varchar(255),
PRIMARY KEY (P_Id)
)

SQL Server / Oracle / MS Access:
CREATE TABLE Persons
(
P_Id int NOT NULL PRIMARY KEY,
LastName varchar(255) NOT NULL,

)
__________________
Final Year Projects
Edwige is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


» Links
   web hosting
   chromebook forum
   chicago webhosting
   webmaster forums
   merchant select

» Links


All times are GMT -4. The time now is 10:47 PM.
Powered by vBulletin Version 3.6.8
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 2.4.0