Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Spaces in Table Names

Status
Not open for further replies.

noclist

MIS
Aug 13, 2008
9
US
I have a table named 'Order Details' that cannot be renamed. When I try to work with it, I get syntax errors I'm assuming are related to the space in the table name. I've tried all combinations of quotes to fix this issue but to no avail.

ex "Order Details.name"
'Order Details.name'
"Order Details".name
'Order Details'.name

Obviously these don't work but I couldn't think of anything else to try.

What is the proper way to deal with this?
 
since you posted in the ANSI SQL forum, the proper way to deal with it is to use doublequotes, which is the standard

"Order Details".name

if this doesn't work for you, then obviously you're using a database system (and you neglected to mention which one) that doesn't support the ANSI standard

helps?


:)



r937.com | rudy.ca
Buy my new book Simply SQL from Amazon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top