Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in MySQL only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
MySQL
re:issue with create table
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
smitashirole
New Member
Join Date:
Mar 2007
Posts:
1
#1
re:issue with create table
Mar 2 '07, 02:09 PM
can we create table with tablename as TABLE
eg. create table TABLE(no int ,name varchar(20));
like this.
ronverdonk
Recognized Expert
Specialist
Join Date:
Jul 2006
Posts:
4259
#2
Mar 2 '07, 04:13 PM
Welcome to The Scripts!
NO you cannot, 'table' is a reserved word in MySQL.
Ronald :cool:
Comment
Post
Cancel
zottty
New Member
Join Date:
Feb 2007
Posts:
27
#3
Mar 2 '07, 04:20 PM
I'm not sure about this, and can't try it right now, but give this a try:
create table `TABLE`(no int ,name varchar(20));
Comment
Post
Cancel
ronverdonk
Recognized Expert
Specialist
Join Date:
Jul 2006
Posts:
4259
#4
Mar 2 '07, 04:25 PM
Yes you can use that name within 'back-ticks'.
But you must then be prepared to ALWAYS use these back-ticks when you use that table name.
Ronald :cool:
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment