Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inserting date into sql or firebird;What is .t. value in
Message
From
07/10/2005 04:17:55
 
 
To
18/09/2005 06:20:19
Dorin Vasilescu
ALL Trans Romania
Arad, Romania
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
01050571
Message ID:
01057066
Views:
11
i tried these to insert to a firebird database.. (connection was established successfully, and insert is successful except when i'm inserting a date value. The date format
for date seems to be incorrect):

?sqlexec(nHandle, "insert into table1 (reference, date) values;
('23422','2005/01/01')")
* returns -1


?sqlexec(nHandle, "insert into table1 (reference, date) values;
('23422','01/01/2005')")
* returns -1

?sqlexec(nHandle, "insert into table1 (reference, date) values;
('23422','2005-01-01')")
* returns -1

?sqlexec(nHandle, "insert into table1 (reference, date) values;
('23422','2005-01-01')")
* returns -1

?sqlexec(nHandle, "insert into table1 (reference, date) values;
('23422',{2005-01-01})")
* returns -1

?sqlexec(nHandle, "insert into table1 (reference, date) values;
('23422',{01/01/2005})")
* returns -1


...and almost all possible ways of defining date such as {2005/01/01}
{1.1.2005} {^2005/01/01} '^2005/01/01'
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform