Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Begin Transation e TableUpdate
Message
From
26/11/2002 07:38:58
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Begin Transation e TableUpdate
Miscellaneous
Thread ID:
00726899
Message ID:
00726899
Views:
33
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 .

Next
Reply
Map
View

Click here to load this message in the networking platform