(Find all correct answers)
Both databases are inside the same mysql instance.
a) create table tt2.test like tt.test; insert into tt2.test select * from tt.test; drop table tt.test; b) alter table tt.test rename to tt2.test; c) alter table tt.test move to tt2;
[ Tables and Indexes (15%) - Altering Tables ]
Answers:
a b
Both a and b will work. b is fast, as no copying takes place.
The
move
option does not exist forALTER TABLE
.