I have SQL Select query with where clauses. For e.g
select * from table where status = 1
And how can I update single column with selected rows simultaneously while selecting? I want to mark selected rows, to avoid reselect on the next loop. Something like:
select * from table where status = 1; update table set proc = 1 where id in (select id from table where status = 1)
But this query will not return results.
table; invent some other meta-syntactic names.