Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Begin Transation e TableUpdate
Message
De
26/11/2002 10:44:52
 
 
À
26/11/2002 08:11:27
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00726899
Message ID:
00727028
Vues:
18
Gracias Hilmar

Mas tenho mais uma dúvida

Por favor analisem este código e comentem o que está bem e o que está mal .
Muito obrigado
BEGIN TRANSACTION

Select tabela1
=TableUpdate(1,.T.)
FLUSH

Select tabela2
=TableUpdate(1,.T.)
FLUSH

Select tabela3
=TableUpdate(1,.T.)
FLUSH

IF TableUpdate(.T., .F., "Tabela1") ;
     and TableUpdate(.T., .F., "Tabela2") ;
     and TableUpdate(.T., .F., "Tabela3")
  END TRANSACTION 
ELSE
  ROLLBACK 
ENDIF
&& Pergunto este código está certo ?
&& Pode ser melhorado ?
&& Muito obrigado


Pedro Silva

world is wonderful with your help .

Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform