re:issue with create table

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • smitashirole
    New Member
    • Mar 2007
    • 1

    re:issue with create table

    can we create table with tablename as TABLE
    eg. create table TABLE(no int ,name varchar(20));
    like this.
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    Welcome to The Scripts!

    NO you cannot, 'table' is a reserved word in MySQL.

    Ronald :cool:

    Comment

    • zottty
      New Member
      • Feb 2007
      • 27

      #3
      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

      • ronverdonk
        Recognized Expert Specialist
        • Jul 2006
        • 4259

        #4
        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

        Working...