MySQL Forums
Forum List  »  InnoDB

Re: Create Temporary Table with same name as non-temporary table
Posted by: Alejandro Diaz
Date: May 13, 2008 08:01AM

tack so mycket Micke!

The "like" with same table names was the problem. I finally did the same create temporary table clause but putting a different temporary table name. Then with alter table renamed the temporary table name to the main one.

Something like this:
create temporary table menuprincipal_temp like menuprincipal
alter table menuprincipal_temp rename menuprincipal



Thanks,
Alex (Barcelona, Spain)

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Create Temporary Table with same name as non-temporary table
1743
May 13, 2008 08:01AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.