Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQLEXEC, datetime()
Message
De
17/08/2013 10:40:39
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01580683
Message ID:
01580696
Vues:
31
>How can I insert current datetime in my sql table via VFP ?
>
>year, month, day, h, m,s
>
>Please help me insert date in line below:
>
>cSQL = "UPDATE reembolso set reg_correios= ?m.reg_correios, env_ect = 1 where code = ?m.code, datetime = "
>
>asa=SQLEXEC(lnHandle,cSQL )
>
>I am not sure if I have to convert it.
>
>Moises


When I worked with DB2, it had an extended DATETIME function which included an extra 6 digits at the end of the normal format so as to provide better resolution. We converted that fo C(26) and retrieved it that way "MM/DD/YYYY HH:MM:SS.ZZZZZZ". We instructed the remote DB engine to do this so on our queries and updates they were always stored and retrieved that way.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform