Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Begin Transation e TableUpdate
Message
De
26/11/2002 07:38:58
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Begin Transation e TableUpdate
Divers
Thread ID:
00726899
Message ID:
00726899
Vues:
36
Olá

Estou a tentar implementar o begin transaction , no meus programas , mas estou com dúvidas de iniciante , por exemplo vi este código do Hilmar ,

BEGIN TRANSACTION
IF TableUpdate(.T., .F., "Tabla1") and TableUpdate(.T., .F., "Tabla2")
END TRANSACTION && Confirmar cambios
ELSE
ROLLBACK && Anular cambios
ENDIF


Entendo a teoria , mas o que significa TableUpdate(.T., .F., "Tabla1") ?

No help do VFP , só encontro , um parametro lógico para o TableUpdate . E aqui vejo dois ... ?

No meu programa tenho mais ou menos isto

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

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

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

....
Ao colocar este código dentro de um Begin Transation , só colocaria o Flush , depois do End Transation ?
Ou o COMMIT da Transation é igual ao comando FLUSH ?

Sei que parecem perguntas estúpidas , mas neste momento é muito importante para mim esclarecer estes conceitos .

Muito obrigado


Pedro Silva

world is wonderful with your help .

Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform