D
djc
design grid created something like this:
UPDATE tblTable1, tblTable2 SET tblTable1.Field = tblTable2.Field
WHERE (tblTable1.ID = tblTable2.ID) AND (tblTable2.Field Is Not)
There is no FROM clause.
Unfortunately I didn't save it so the following my not be completely
accurate but I had done something similiar to this via sql view:
UPDATE tblTable1 SET tblTable1.Field = tblTable2.Field
FROM tblTable1 INNER JOIN tblTable2 ON tblTable1.ID = tblTable2.ID
WHERE (tblTable1.ID = tblTable2.ID) AND (tblTable2.Field Is Not)
I am confused as to which way is right/wrong? Or if they are both ok which
is better? Or if it depends on the situation, what are the
advantages/disadvantages to both styles?
I just encountered a bunch of stuff at once that I have questions about so I
hope I asked this clearly.
UPDATE tblTable1, tblTable2 SET tblTable1.Field = tblTable2.Field
WHERE (tblTable1.ID = tblTable2.ID) AND (tblTable2.Field Is Not)
There is no FROM clause.
Unfortunately I didn't save it so the following my not be completely
accurate but I had done something similiar to this via sql view:
UPDATE tblTable1 SET tblTable1.Field = tblTable2.Field
FROM tblTable1 INNER JOIN tblTable2 ON tblTable1.ID = tblTable2.ID
WHERE (tblTable1.ID = tblTable2.ID) AND (tblTable2.Field Is Not)
I am confused as to which way is right/wrong? Or if they are both ok which
is better? Or if it depends on the situation, what are the
advantages/disadvantages to both styles?
I just encountered a bunch of stuff at once that I have questions about so I
hope I asked this clearly.