I have 40,000 rows in my database that I need to update. However my select query that I have used is across two tables.
Example of my select query below:
select t1.*, t2.data, t2.more_data, t2.more_data2
from table1 as t1, table2 as t2
where
DATE(t1.date) >= '2014-10-23'
and
t1.direction = 10
and
t1.date_read is NULL
and
t1.fk_client is NULL
and
t1.id=t2.id
and
t2.data = 'this is dummy text';
I've been looking through other peoples requests on this, but I just cannot seem to get my head round it.
EDIT:
What I am wanting to do is to update t1.date_read
with 2015-03-17 09:00:00
where t2.data
is equal to 'this is dummy test'