H
hgzy
Unregistered / Unconfirmed
GUEST, unregistred user!
本人每次从各位那里得到方法,都要属性中的SQL里和程序中试上几遍!
>>Add('SELECT * FROM eqts');
>>Add('WHERE csdate='''+'02/11/1999'+'''');
DELPHI显示:
Project Pro1.exe raised exception class EDBEngineError with
message'General SQL error.
General SQL error
[Microsoft][ODBC Microsoft Access 97 驱动程序]标准表达式中数据类型不匹配.
>>Add('SELECT * FROM eqts');
>>Add('WHERE csdate="02/11/1999" ');
or
>>Add('SELECT * FROM eqts');
>>Add('WHERE csdate="1999-02-11" ');
or
>>Add('SELECT * FROM eqts');
>>Add('WHERE csdate=1999-02-11');
DELPHI显示:
General SQL error
[Microsoft][ODBC Microsoft Access 97 驱动程序]标准表达式中数据类型不匹配.
我觉得是SQL的问题,但是就是解决不了.
>>Add('SELECT * FROM eqts');
>>Add('WHERE csdate='''+'02/11/1999'+'''');
DELPHI显示:
Project Pro1.exe raised exception class EDBEngineError with
message'General SQL error.
General SQL error
[Microsoft][ODBC Microsoft Access 97 驱动程序]标准表达式中数据类型不匹配.
>>Add('SELECT * FROM eqts');
>>Add('WHERE csdate="02/11/1999" ');
or
>>Add('SELECT * FROM eqts');
>>Add('WHERE csdate="1999-02-11" ');
or
>>Add('SELECT * FROM eqts');
>>Add('WHERE csdate=1999-02-11');
DELPHI显示:
General SQL error
[Microsoft][ODBC Microsoft Access 97 驱动程序]标准表达式中数据类型不匹配.
我觉得是SQL的问题,但是就是解决不了.