Folgende ist meine Abfrage: Update auf einer anderen Spalte ist
select c.*,u.fullname,u.userphoto from chat_messages
c left join us_signup u on u.id=c.fromid
where c.fromid in(?,?) and c.toid in(?,?) and c.jobid=?
order by c.received_date asc
eine Spalte in der chat_messages Tabelle „readi“ genannt, die ich
aktualisieren möchtenich habe bereits refered:
How to UPDATE and SELECT at the same time in MySQL
Is there a way to SELECT and UPDATE rows at the same time?
etc .. aber konnte meine Abfrage nicht ändern ..
https://stackoverflow.com/questions/24691576/mysql-update-column-then-select-updated- Wert - obwohl ich mich frage, ob nicht ein historisches Protokoll gewünscht wird oder etwas (einfügen und get generierten Schlüssel). –