Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
(SQL) REPLACE seem not right?
Message
De
09/10/2001 10:19:44
Chuck Tripi
University of Wisconsin - Milwaukee
Milwaukee, Wisconsin, États-Unis
 
 
À
09/10/2001 08:23:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00564147
Message ID:
00565916
Vues:
27
>Are you sure the WHERE clause is actually matching any records? Try a SELECT using the same where clause to see if any records are selected.

Did this:
SELECT * FROM auth ;
         WHERE auth.organization = org.organization AND ;
         (auth.end > DATE() OR EMPTY(auth.end))
and came up with 8 matching results. Could it be the buffer=5 or ... I mean it worked before and now it doesn't (I know it's one of the Top 20 Programmer's excuses :).

Chuck

>>>
>>>UPDATE auth SET end = DATE(), ;
>>>	uplog = ALLTRIM(GETENV("USR")) ;
>>>WHERE auth.organization = org.organization AND ;
>>>	(auth.end > DATE() OR EMPTY(auth.end))
>>>>
REPLACE auth.end WITH DATE(), ;
>>>>	auth.uplog WITH ALLTRIM(GETENV("USR")) FOR ;
>>>>	auth.organization = org.organization AND ;
>>>>	(auth.end > DATE() OR EMPTY(auth.end)) ;
>>>>	IN auth
Today is tomorrow's yesterday.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform