I want to create the following Update-Statement: UPDATE table1 SET STATUSID=4 WHERE...
And after the where I want to use a select statement:
select f.formtype,f.formuser,f.formstatusid
from table2 v, table1 f
where v.statusid = "1"
and v.date like "2010-06-17 15:40%"
and f.formtype = "4"
and f.formid = v.formid
This select statement define the entries, which I want to update. How can I do this?