dbTalk Databases Forums  

Syntax Error In Select Where Query

comp.databases.btrieve comp.databases.btrieve


Discuss Syntax Error In Select Where Query in the comp.databases.btrieve forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
RoadRunner
 
Posts: n/a

Default Syntax Error In Select Where Query - 09-30-2004 , 08:26 PM






Hi,

I'm trying to execute a Select query with a Where clause in a JSP page and I
get the error listed below. From what I've been able to tell by checking
the news groups is that Btrieve doesn't use standard SQL.

javax.servlet.ServletException:
[Pervasive][ODBC Client Interface][LNA][Pervasive][ODBC Engine Interface]
Syntax Error: SELECT Chart Number, Last Name, First Name FROM LYTEC.Patient
WHERE (Chart Number<< ??? >> = '04M00007')

I've tried many different combos but I keep getting the same error except
that <<???>> gets moved around in the err msg. For example, I added table
name (Patient.) to all col names.

Any help would be greatly appreciated!

Regards,
Keith




Reply With Quote
  #2  
Old   
Bill
 
Posts: n/a

Default Re: Syntax Error In Select Where Query - 09-30-2004 , 09:27 PM






In ANSI SQL you need to put the Chart Number column name in double
quotes since it contains a space. Try "Chart Number" .

--
_Bill_

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.