Jump to content

[SOLVED] 2 noobish mysql question


asmith

Recommended Posts

1.when creating table i've seen a lot , they've used "NOT NULL" , like  (username varchar (65) NOT NULL... or NOT NULL default ,

is that for security  ? what does it mean ? what does default mean ?

 

2. i want to put a "id" column in one table  , when first user information fills in the first row, there will be 1 in "id" column , then when second comes, it automaticlly put 2 in id ,

is there any specific code for that ?

Link to comment
https://forums.phpfreaks.com/topic/78594-solved-2-noobish-mysql-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.