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 

SQL and field named LONG

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





PostPosted: Wed Nov 17, 2004 11:14 pm    Post subject: SQL and field named LONG Reply with quote



Hi folks;
Using BCB4-Pro and a VCL TQuery I'm trying to get into a database where
someone named a field 'LONG', for longitude. A Query->Text like:

SELECT *
FROM doXXa.dbf
WHERE (LONG <'1213800' AND LONG > '1205200')
AND (LAT < '521700' AND LAT > '513100')

Generates a improper use of keyword LONG error.

I need the single quotes because, like the LAT field some entries have text
in these fields!

Is there some way I can have LONG interpreted as a field, not a key word? Or
do I need to change the name of the field in my local copy of this db?

Thx,
Drew


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.