I want to manually add another row in my table CUSTOMER while incrementing the CustomerID attributes.
This is how my CUSTOMER table is structured :
------------------------------------------------------
| CustomerID | FirstName | LastName |
------------------------------------------------------
| INTEGER PRIMARY KEY | CHAR(15) | CHAR(15) |
------------------------------------------------------
In this table, I already have a row with CustomerID = 1, FirstName = Jeremhia, LastName = Cutecut. I want to add another row in this table without specifying the number in column CustomerID, in other words, I want to increment it.
This is what I did so far and it is not working :
INSERT INTO CUSTOMER (CustomerID, FirstName, LastName)
VALUES (:vcustid, 'Abe', 'Lincoln');
I suspect that the variable vcustid is not working in phpMyAdmin, is there a similar variable or any other way to increment it so I got this following results in my table?
------------------------------------------------------
| CustomerID | FirstName | LastName |
------------------------------------------------------
| 1 | Jeremhia | Cutecut |
------------------------------------------------------
| 2 | Abe | Lincoln |
------------------------------------------------------