I'm trying to copy a whole load of rows from one table to another.
The tables should be identical since the same SQL was used to create them both.
Here's the SELECT...INSERT I'm using
But when this runs I get the following error
timeType is an enum column
enum('Full Time','Part Time')
none of the rows being moved have a value different to either option.
Another enum column in the table seems to copy over perfectly well.
Help!? Any idea what is going on here?
<honk>*:O)</honk>
Tyres: Mine's a pint of the black stuff.
Mike: You can't drink a pint of Bovril.
The tables should be identical since the same SQL was used to create them both.
Here's the SELECT...INSERT I'm using
Code:
insert into jobarchive (
id,consultantId,branchId,reference,postDate,location,type,timeType,title,description,status,salaryFrom,salaryPre,salaryTo,salaryPeriod,salaryOptions,views,archive,lastUpdate,created
)
SELECT
id,consultantId,branchId,reference,postDate,location,type,timeType,title,description,status,salaryFrom,salaryPre,salaryTo,salaryPeriod,salaryOptions,views,archive,lastUpdate,created
FROM jobs WHERE archive="yes"
But when this runs I get the following error
Code:
Data truncation: Data truncated fro column 'timeType' at row 92.
timeType is an enum column
enum('Full Time','Part Time')
none of the rows being moved have a value different to either option.
Another enum column in the table seems to copy over perfectly well.
Help!? Any idea what is going on here?
<honk>*:O)</honk>
Tyres: Mine's a pint of the black stuff.
Mike: You can't drink a pint of Bovril.