Bug #10907 need to be able to create tables of local scope in sp
Submitted: 27 May 2005 8:55
Reporter: serle shuman Email Updates:
Status: Open Impact on me:
None 
Category:MySQL Server: Stored Routines Severity:S4 (Feature request)
Version:5.0.0 OS:Any (all)
Assigned to: CPU Architecture:Any

[27 May 2005 8:55] serle shuman
Description:
Apart from lifting the restrictions on the number of temporary tables used in stored procedures, it would be really useful to be able to declare a table which is local in scope to a particular stored procedure call, much the same as declared variables are. Often one needs to use stored procedures in cases where intermediate manipulations cannot be achieved by a single SQL statement, but do not want the results contaminating the
1) database as in the case of normal tables or 
2) session as in the case of temporary tables. 

How to repeat:
enhancement

Suggested fix:
A CREATE LOCAL table syntax would be quite neat.