Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Reserved words as column names

Author  Topic 

davemere
Starting Member

4 Posts

Posted - 2007-11-08 : 11:29:09
Hi there,

I'm trying to recreate a MS-SQL database in MySQL. One particular table has a column names "Precision", a reserved word in MySQL. I woudl really prefer to keep this name if possible as it will be referenced in all sorts of places. I've tried single and double quotes, that didn't work.

Is it possible to use reserveds word as column names? How?

cheers

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2007-11-08 : 11:30:55
[reserve word] this works on MS-SQL, not so sure about MySQL


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page

pootle_flump

1064 Posts

Posted - 2007-11-08 : 11:40:58
Better posted here or another MySQL site:
http://www.dbforums.com/forumdisplay.php?f=5
Go to Top of Page

jezemine
Master Smack Fu Yak Hacker

2886 Posts

Posted - 2007-11-08 : 11:49:06
mysql uses perverse `backticks` iirc.


elsasoft.org
Go to Top of Page

davemere
Starting Member

4 Posts

Posted - 2007-11-08 : 11:54:31
Cheers now. [] sadly did not work.

Perhaps those mofos at dbForum can crack this nut.
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2007-11-08 : 13:57:45
Well since this is a SQL Server forum, I sugget you check out dbforums

http://www.dbforums.com/forumdisplay.php?f=5

I really need to get some exposure in that area



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-11-09 : 01:07:48
quote:
Originally posted by jezemine

mysql uses perverse `backticks` iirc.


elsasoft.org


so as single and double quotes though I am note sure if that works for all settings

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -