CREATE TABLE findings (
ident VARCHAR(28),
code VARCHAR(8),
when DATETIME,
ip VARCHAR(15)
);
when is a keyword in mysql and needs to be quoted with backticks:
CREATE TABLE `findings` (
`ident` VARCHAR(28),
`code` VARCHAR(8),
`when` DATETIME,
`ip` VARCHAR(15)
);
EDIT: It has been pointed out correctly in the comments, that this is not a good solution. You might be better off finding another name for your column.
The word when.
In some databases this is a keyword. So, while processing your create table instruction you may get some errors from your database management system.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With