Results 1 to 5 of 5

Thread: Problem in mysql

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2007
    Posts
    153

    Problem in mysql

    hi to all,
    i want to create the table in my sql with the space. that means i want to create the table with the name test table. how can i create the tablename with space and also how can i create the column with the space.
    if any body know, plz help me.


    thank u

    with thanks and regards
    mmary

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Problem in mysql

    I think you can do it by enclosing the name in backticks (`), but I suggest you don't. It only causes headaches. Just use an underscore to separate words in indentifiers.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Feb 2007
    Posts
    153

    Re: Problem in mysql

    hi, thank u very much for ur help.
    i was tried using enclosing, but its not working. when iam using the enclosing for select statement.its working. creating and inserting its not working . how can i solve the problem. the query i tried is


    create table (test table)(name text);


    plz help me.

    thank u.

    with thanks and regards
    mmary

  4. #4
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Problem in mysql

    Backticks, not parentheses:

    Code:
    CREATE TABLE `test table` (
      name text(255)
    )
    But I do strongly advise you not to do it.

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Feb 2007
    Posts
    153

    Resolved Re: Problem in mysql

    thank u very much for ur help. now its working. thanku very much.



    thank u

    with thanks and regards
    mmary

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width