Skip to content

By urs in mysql questions

 
(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 ]
 

Tags: , ,

Comment Feed

One Response


  1.  
    Answers:
     
    a b
     
    Both a and b will work. b is fast, as no copying takes place.
    The move option does not exist for ALTER TABLE.
     

You must be logged in to post a comment.