Put a table into memory

CREATE TABLE new_table ENGINE=MEMORY AS SELECT * FROM old_table;