Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL query
Message
De
28/08/2014 11:50:42
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
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:
01606642
Message ID:
01606646
Vues:
58
Did you put double qoutes around the command and single qoutes around the value?

>>>The following commands in a VFP program should delete from an sql database all records for the appropriate accountno but nothing happens
>>>
>>>
>>> lcsqlcommand ="delete JobList where TRIM(accountno)=DG34214"
>>> lnresult = SQLEXEC(gnConnHandle,lcsqlcommand)
>>> select sqlresult
>>>
>>>What have I done wrong?
>>
>>For starts Colin if you ran that command in SQL it would not work. You need quotes round the string.
>>
>>"delete JobList where TRIM(accountno)='DG34214'"
>
>If I put quotes around the string I get a compile error
Gerhard Schmidbauer
URANUS Software GmbH
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform