Creating ID's

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

sk8erh4x0r
Forum Commoner
Posts: 43
Joined: Wed May 26, 2004 8:27 pm

Post by sk8erh4x0r »

OK, thanks. :D
User avatar
tim
DevNet Resident
Posts: 1165
Joined: Thu Feb 12, 2004 7:19 pm
Location: ohio

Post by tim »

np
sk8erh4x0r
Forum Commoner
Posts: 43
Joined: Wed May 26, 2004 8:27 pm

Post by sk8erh4x0r »

Ok... I have the ID thing working.. kinda. Am I supposed to set a default value because i don't have anything there. Then, when i create the table it puts 0 as its default and when people sign up, the id for each person is 0.
User avatar
tim
DevNet Resident
Posts: 1165
Joined: Thu Feb 12, 2004 7:19 pm
Location: ohio

Post by tim »

it would seem like you didnt even have to come and ask as you already know what you must do.

the length can be 1, as no more than one is needed cause it only auto_increments by one per row. People usually set it as the primary key, everything else I think you know

ask if you need further help
Post Reply