我有一个 datetime(6)列类型,我需要更改为 datetime 而不使用alter table语句。 我想“兼容”模式应该有效。
# mysqldump dbo apexsql_log_connection_monitor_session --no-data --compatible=ansi,no_key_options,no_table_options,no_field_options
CREATE TABLE "apexsql_log_connection_monitor_session" (
"SESSION_ID" int(11) NOT NULL,
"START_TIME" datetime(6) DEFAULT NULL,
"STOP_TIME" datetime(6) DEFAULT NULL,
"SERVER_NAME" varchar(256) DEFAULT NULL,
PRIMARY KEY ("SESSION_ID")
);
有没有办法只使用datetime列类型转储数据(没有6)。