Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using SQL Update to Check for existence
Message
De
20/09/2005 17:46:40
 
 
À
20/09/2005 16:50:47
Steven Dyke
Safran Seats USA
Texas, États-Unis
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 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01051456
Message ID:
01051470
Vues:
14
>Instead of running a Select SPT statement to check for the existence of a record, how can I use the Update statement to do both? If record exists update it. if it dosen't do an insert.

With a single UPDATE is not possible.

You can use this in not multiuser env.
UPDATE ..... WHERE pk=....
IF EMPTY(_TALLY)
  INSERT ....
ENDIF
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform