CREATE TABLE items (
id serial primary key,
author_id int references users,
body text,
created timestamp default (current_timestamp at time zone 'utc')
);
Why?
Why?
| |||||||||
feedback
|
|
MySQL uses a slightly different syntax, so a straight copy / paste will not work, here's an example of what the create statement will look like for MySQL:
Hope this helps. --schiz | |||||||
feedback
|
|
Because you can't really copypasta SQL between two different engines and expect it to work. ISTR that MySQL has no idea what a Serial field is. The syntax between database engines is vastly different. | |||||||
feedback
|