I have a table with records.
Everytime a new record is inserted, 3 of the fields are left NULL - which is fine, cos i get them later from 3 other tables using this code:
select max(file_id) as mf, max(detail_id) as md, max(cat_id) as mc from fil, detail, cat
what i want to do is update a record in my original table to reflect this new data. ( i would like it to read
original table (stuff)
---------------
record 1 mf, md , mc
do i do (update STUFF
set x='mf', y='md', z='mc'
where ........etc)
is this the right syntax?
Everytime a new record is inserted, 3 of the fields are left NULL - which is fine, cos i get them later from 3 other tables using this code:
select max(file_id) as mf, max(detail_id) as md, max(cat_id) as mc from fil, detail, cat
what i want to do is update a record in my original table to reflect this new data. ( i would like it to read
original table (stuff)
---------------
record 1 mf, md , mc
do i do (update STUFF
set x='mf', y='md', z='mc'
where ........etc)
is this the right syntax?