CREATE TABLE ... LIKE copies the table structure including indexes. Option A (CREATE ... AS SELECT ... WHERE 1=0) also creates structure but may not copy indexes or other definition details. INSERT ... LIMIT 0 assumes the new_table exists. RENAME moves the table rather than creating a copy.
Discusssion
Login to discuss.