Stored Proceedure Variable Questions
Ok this question should be relatively simple.
MySQL, using a stored procedure, can you use the variable you are inputting as a table name in a create statement inside the stored procedure?
Here is what i have written thus far:
CREATE PROCEDURE Back_table(IN tblnme CHAR(15))
BEGIN
Create Table tblnme (stored VARCHAR(20), backed VARCHAR(20),
logged int, pallet CHAR(5), tray char (5), tag int);
END //
When i execute the stored procedure it creates a table with the name tblnme, but i want it to use the char input as the file name. So what did i miss here?
Subject
Views
Written By
Posted
Stored Proceedure Variable Questions
4456
May 27, 2017 05:22PM
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.