Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A pseudo SEEK() Function to be used with SPT
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00675579
Message ID:
00675701
Vues:
9
Hi Sergey,

>The fastest way to check if record or records exist in Sql Server is to use EXISTS operator.
>
SELECT CASE WHEN EXISTS (
>		SELECT * FROM pubs..authors WHERE au_id = '213-46-8915') THEN 1
>	ELSE 0 END
The problem is, he wants to have a solution that can be used with most DB servers. AFAIK "CASE" is not supported on some (or many?) systems (Ingres for example).

Armin

Armin Neudert
Regional Director (Stuttgart) of German FoxPro User Group dFPUG

MCP for Visual FoxPro

Expert/Editor of the VFP section in the German Codezone community portal
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform