Information générale
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
>>HI,
Cetin,
I think u understood a bit wrong.
I have a tables populated with values.
I make a view modify a few records and then would like to update a the column OF those MODIFIED RECORDS.
So I have the primary key/s
I make a view with top 0 or the 1=2 ,
make the view updatable, insert those primary keys already present on the server into the updatable cursor and then issue a tableupdate ? Should Succeed ? No it doesnt.
I dont have a problem in inserting Fresh records.
Remember the last question i asked about joins ? I just wanted to do a bit turn around by doing this.
*** your code
mySQLExec(m.lnHandle,"select top 3 temp_guid_id","GUIDVal") && *** eg: these three records are to be updated.
Select GUIDVal
Scan
Insert Into v_test Values (GUIDVal.temp_guid_id,.T.) && value gets inserted locally.
** Yes but remember the PKs are already present on the server. I just want to modify a column associated with these records
Endscan
? Tableupdate(2,.T.,'v_test') && Tableupdate to send updates ?Will it succede ? It fails for me.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement