Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Begin Transation e TableUpdate
Message
De
26/11/2002 08:11:27
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
26/11/2002 07:38:58
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:
00726905
Vues:
15
This message has been marked as a message which has helped to the initial question of the thread.
>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 ... ?

Sintaxis:

TABLEUPDATE([nRows [, lForce]] [, cTableAlias | nWorkArea]
[, cErrorArray])

nRows ainda suporta o antigo valor lógico, .T. ou .F. "If nRows is 0 (or .F.) ..."

1 = .T., 0 = .F. Depois de VFP3, cambiaram a numérico, para suportar ainda outro valor. Porem, ainda suporta o valor lógico.

>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 ?

Acho que commit (END TRANSACTION) nao implica FLUSH. É mais seguro usar FLUSH depois de cada TableUpdate().

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform