dbTalk Databases Forums  

SQL Query produces error

comp.databases.btrieve comp.databases.btrieve


Discuss SQL Query produces error in the comp.databases.btrieve forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
andreas-boettger@web.de
 
Posts: n/a

Default SQL Query produces error - 05-17-2005 , 09:33 PM






Hi,

I'm trying to execute this SQL-Statement on a Pervasive SQL Database
with PHP.

SELECT VMDH.TXTYPE, VMDH.TXDESC, VMDH.NMBLABRDUR, VMDBHD.NMBLABRDUR
FROM VMDBHD INNER JOIN VMDH ON VMDBHD.NMDOCID=VMDH.NMDOCID WHERE
VMDH.TXTYPE BETWEEN 'C04027' AND 'P05011' ORDER BY VMDH.TXTYPE

If I leave out the "order by"-statement everything works fine.
But if I add "order by" it only shows the first two columns
(VMDH.TXTYPE, VMDH.TXDESC) which contains text.
It shows me the heading of each column but not the values of the last
two columns which contain numbers.
What is wrong with this statement?
The datatype of the last two columns is BCD.


Reply With Quote
  #2  
Old   
andreas-boettger@web.de
 
Posts: n/a

Default Re: SQL Query produces error - 05-17-2005 , 10:46 PM






After further testing I think it is PHP which causes this error.
I don't know....


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.