sql запрос к dbf

Новая тема
"день добрый

не выполняется следующий запрос:





idostatok.Open("SELECT distinct sc178.code as code, 1sconst.value as cena, sc150.descr as typecen FROM sc150, sc178, sc171, 1sconst where (sc178.isfolder=2)and(sc171.parentext=sc178.id)and(1sconst.objid=sc171.id)and(1sconst.id=173)and(sc150.id=sc171.sp172) order by sc178.code ", ADO);



ругается на таблицу 1sconst, (Command contains unrecognized phrase/keyword.) помещая данную таблицу в кавычки ругается подругому (Operator/operand type mismatch.)

в общем не могу обратится к 1sconst, может кто синтаксис подскажет.



"
Читают тему
(гостей: 1)

Быстрый переход