AW: Delphi TmysqlQuery
You have to fill the parameters with values before you execute your statement. Didn' t you do this?
|
AW: Delphi TmysqlQuery
Please check while debugging Tmysqlquery.Text. This is the SQL statement passed to MySQL.
|
AW: Delphi TmysqlQuery
Hi,
i have debug the application and i have found that, the system date format is: 2013-09-04(yy-mm-dd) but the database query dateformat shows the: 04-09-2013(dd-mm-yy) how to make it similar formate? |
AW: Delphi TmysqlQuery
You can try using FormatDateTime.
|
AW: Delphi TmysqlQuery
i have tried the follwoing ,but still have the same problem
Code:
QueryAdd1.ParamByName('DateNew').AsString:= FormatDateTim('yyyy-mm-dd', DateNew);
|
AW: Delphi TmysqlQuery
Why not
Delphi-Quellcode:
or
QueryAdd1.ParamByName('DateNew').Value := DateNew;
Delphi-Quellcode:
What type has the field in the DB?
QueryAdd1.ParamByName('DateNew').AsDate := DateNew;
|
AW: Delphi TmysqlQuery
in DB it is DateTime field
|
AW: Delphi TmysqlQuery
Then use .Value
|
AW: Delphi TmysqlQuery
i have used .value but its the same :(
|
AW: Delphi TmysqlQuery
Is your error still ? :
Zitat:
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 17:04 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz