Drop Table
Support Forum for database administrators and web based access to important newsgroups related to databasesHi all! I am about to create a procedure which will create tables with dynamically specified tablenames. Something like this DECLARE tname CHAR(30); SET tname = "1233321"; #or any string function CREATE TABLE tname ( #columns cpecification ); But it doesn't works....
Post Follow-up to this messageHi Ilya You are not allowed to do this! If you can use temporary tables instead then that would be a better solution. Failing that, read the following article carefully http://www.sommarskog.se/dynamic_sql.html John "Ilya Dyoshin" wrote: > Hi all! > > I am about to create a procedure which will create tables with > dynamically specified tablenames. > > Something like this > > DECLARE tname CHAR(30); > SET tname = "1233321"; #or any string function > CREATE TABLE tname > ( > #columns cpecification > ); > > > But it doesn't works.... >
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread