![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi there. (I know this is propably not the right forum to ask here, but the other forums don't help a lot. Please help me.) I have been using phpMyAdmin for a couple of years now and simply love it. I have just created a new DB with 6 fields of which the 1st one is named: prod_id. type: smallint The rest of the fields are the default settings as usual. I have changed this prod_id to the prim key. For some reason which I cannot figure out why, does not show under "extra" as "auto_increment". I have double chacked the other db's I have created exactly as I have done this one, and there is says "auto_increment". When I now try to add a record to the DB, I get this error: "Field 'prodid' doesn't have a default value" Please advise where I am doing something wrong. Sincere regards, Deon |
#3
| |||
| |||
|
|
this prod_id to the prim key. -----------^^ "Field 'prodid' doesn't have a default value" -------------^ Typo? |
#4
| |||
| |||
|
|
I have been using phpMyAdmin for a couple of years now and simply love it. I have just created a new DB with 6 fields of which the 1st one is named: prod_id. type: smallint The rest of the fields are the default settings as usual. I have changed this prod_id to the prim key. For some reason which I cannot figure out why, does not show under "extra" as "auto_increment". |

#5
| |||
| |||
|
|
Can you export the structure for this particular Table and paste the results in here? The stuff beginning with: CREATE TABLE `tablename` ( |
![]() |
| Thread Tools | |
| Display Modes | |
| |