When I see examples of creating tables in MySQL, i often see Primary Key used. So i had no idea what it was and researced it...but found nothing out.
For example:
then that is queried to the MySQL database. My question is, what does that Primary Key (ID) thing do? All i know is that it increases the ID value each time the Insert query is called. I think. Can someone please explain it for me?Code:$sql = "create table IF NOT EXISTS Forum ( UserName varchar(15), Password varchar(15), ID int, Primary Key (ID) )"
Thanks in advance.
P.S. - I'm not sure if i wrote that code right either.



Reply With Quote


Bookmarks