Skip to content
WJunction - Webmaster Forum

Primary key

Status
Not open for further replies.
The PRIMARY KEY attribute is used to guarantee uniqueness for a given row. No values residing in a column designated as a primary key are repeatable or nullable within that column. It’s quite common to assign the AUTO_INCREMENT attribute to a column designated as a primary key, because this column doesn’t necessarily have to bear any relation to the row data, other than acting as its unique identifier.
 

3 comments

I am also unsure.
It is from the book "Beginning PHP and PostgreSQL 8: From Novice to Professional" by W Jason Gilmore, Robert H. Treat.
 
Status
Not open for further replies.

About the author

chinmay
Banned · Joined
17
Messages
0
Reactions
1
Points

Tags

Grow your business

Advertise on WJunction

Connect with an established international community of webmasters, hosting providers, developers and online entrepreneurs.

  • Premium & Premium+ Sticky
  • Dedicated section banners
  • Site-wide banner advertising
Explore advertising options
Back
Top Bottom