MySQL Forums
Forum List  »  Stored Procedures

Re: Temporary Tables Aliasing in Stored Procedure
Posted by: Frank Maas
Date: October 07, 2005 04:10AM

Perhaps it is no longer valid and I am totally missing the boat here, but how exactly are you naming your temporary table. I just found out that this (shortened)

> create procedure x(table_name varchar(20))
begin
create temporary table table_name ...
end;

> call x('blabla');

does not create temporary table 'blabla' (as I expected), but table 'table_name' in stead. I am now sifting through the forum if I missed something here...

HTH/Frank

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Temporary Tables Aliasing in Stored Procedure
2271
October 07, 2005 04:10AM


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.