How to Add a primary key in database table

Status
Not open for further replies.

anilson1

New Member
Messages
45
Reaction score
0
Points
0
I created a database with phpMyAdmin. I want to creat a table with a field that has auto-increament. I selected auto-increament to the primary field and type varchar(20). How can I solve this?
in some cases the text type gets an error for "no null". I need help. anybody???? or any reference to phpMyAdmin.
 

anilson1

New Member
Messages
45
Reaction score
0
Points
0
Can I add auto_increment with these values? I mean:

Field=id
Type=bigint
length/values=20
Extra=auto_increment
primery key=radio button selected.

I want to increase the numeric value of id every time I add sth.
 
Last edited:

anilson1

New Member
Messages
45
Reaction score
0
Points
0
this problem is solved. I don't know how to close this thread. I do not see the close checkbox.
 

LHVWB

New Member
Messages
1,308
Reaction score
0
Points
0
this problem is solved. I don't know how to close this thread. I do not see the close checkbox.

I've closed it for you. :biggrin:

We have yet to actually find out if users can close their own threads in these sections.

* Closed *
 
Status
Not open for further replies.
Top