TechSpott - Computer and technology forums

Go Back   TechSpott - Computer and technology forums > Webmasters > Database Management > MySQL
MySQL Forum dedicated to the world's most popular open source database engine.

Reply
 
Thread Tools Display Modes
Old May 3rd, 2010, 11:20 PM   #1 (permalink)
Rumel
Guest
 
Posts: n/a
Default how to create MySQL table with variable name?

i need to create tables in MySQL with a variable name such that

CREATE TABLE $variable_name
(
id
name
contact
);

but its not working. can anyone help me with this type of code?
  Reply With Quote Share with Facebook
Reply

Bookmarks

Tags
create, mysql, table, variable


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Will a primary key or index speed up my MySQL table? Mr Quan MySQL 0 April 13th, 2010 06:07 AM
MySQL table join (joining a column from one table to the row of another more like)? Grizzley G MySQL 0 April 12th, 2010 01:17 AM
How do I create this simple table in MySQL? Phew Phewlips MySQL 0 April 5th, 2010 07:24 AM
MySQL put error message in variable? Mark S MySQL 1 April 4th, 2010 03:04 AM
How do I make my MySQL table automatically make a timestamp when new data is added? Carbonbased Lifeform MySQL 0 March 31st, 2010 03:40 PM

 
Forum Stats
Members: 14,360
Threads: 20,371
Posts: 27,823
Total Online: 43

Newest Member: Ruileskemnemi

Latest Threads

Advertisements

Support our advertisers!

Amazon
Sears
Macys
1800flowers.com
Drugstore.com


Carbonite Online-Backups
Tiger Direct
Tech Depot
Buy.com
Office Depot
Fatcow
HostGator


TripsNow.us
Marriott
Expedia
CheapTickets.com
OneTravel
Hotwire

Are you a Fan?

Share this on Facebook

Tag Cloud

Partner Links


Contact Us - Home - Archive - Privacy Statement - Top - Copyright © 2009-2010, TechSpott - All times are GMT -4. Time is 04:58 PM

Powered by vBulletin® Copyright © Jelsoft Enterprises Ltd. :: SEO by vBSEO