CREATE TABLE feed_import (
sku VARCHAR(20),
price DECIMAL(10,2),
updated_at DATETIME
) ENGINE = CSV;
-- The underlying file (feed_import.CSV in the database directory) can be
-- edited directly with any external tool, then read back immediately
SELECT * FROM feed_import;
-- Typically used only as a staging table before loading into InnoDB
CREATE TABLE feed_final LIKE feed_import;
ALTER TABLE feed_final ENGINE = InnoDB;
INSERT INTO feed_final SELECT * FROM feed_import;
CREATE TABLE feed_import (
sku VARCHAR(20),
price DECIMAL(10,2),
updated_at DATETIME
) ENGINE = CSV;
-- The underlying file (feed_import.CSV in the database directory) can be
-- edited directly with any external tool, then read back immediately
SELECT * FROM feed_import;
-- Typically used only as a staging table before loading into InnoDB
CREATE TABLE feed_final LIKE feed_import;
ALTER TABLE feed_final ENGINE = InnoDB;
INSERT INTO feed_final SELECT * FROM feed_import;