将CONSTRAINT从PostgreSQL转换为MySQL?

时间:2016-11-09 15:51:21

标签: mysql sql postgresql translate

如何将CONSTRAINT从PostgreSQL转换为MySQL?

CREATE TABLE language_history (
    pk int NOT NULL AUTO_INCREMENT PRIMARY KEY,
    latitude double precision,
    longitude double precision,
    version int NOT NULL,
    CONSTRAINT language_history_latitude_check CHECK (((((-90))::double precision <= latitude) AND (latitude <= (90)::double precision))),
    CONSTRAINT language_history_longitude_check CHECK (((((-180))::double precision <= longitude) AND (longitude <= (180)::double precision)))
);

0 个答案:

没有答案