BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Local SQL "DESC" keyword - workaround

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (SQL Servers)
View previous topic :: View next topic  
Author Message
John MacDonald
Guest





PostPosted: Fri Dec 29, 2006 10:08 pm    Post subject: Local SQL "DESC" keyword - workaround Reply with quote



Hello folks:

I am using the Local SQL that came with my builder 5 ent.

One of the main databases has a field names DESC - this is also a keyword. I
would like to use the field name in a Order By clause.

Does anyone have a workaround?

JMAC out
Back to top
Vassiliev V. V.
Guest





PostPosted: Fri Dec 29, 2006 11:19 pm    Post subject: Re: Local SQL "DESC" keyword - workaround Reply with quote



Quote column name. Depending on DBMS one of following may work:

[DESC]
"DESC"
`DESC`

in last variant ` is not single quote.

//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)


"John MacDonald" <jmac (AT) itmeasures (DOT) com> сообщил/сообщила в новостях
следующее: news:45953ca4$1 (AT) newsgroups (DOT) borland.com...
Quote:
Hello folks:

I am using the Local SQL that came with my builder 5 ent.

One of the main databases has a field names DESC - this is also a keyword.
I
would like to use the field name in a Order By clause.

Does anyone have a workaround?

JMAC out


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (SQL Servers) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.