I have a VARCHAR
field in a MySQL table like so -
CREATE TABLE desc(
`pk` varchar(10) NOT NULL UNIQUE,
...
);
The value in pk field is of the type - (xx0000001, xx0000002, ...). But when I insert these into my table the values in pk
field get truncated to (xx1, xx2, ...).
How to prevent this?
UPDATE: Adding the INSERT
statement
INSERT INTO desc (pk) VALUES ("xx0000001");