I want to get the ID
of the row on which an UPDATE
function is being performed in the same SQL query.
Something like this:
Select id
from relations
where (UPDATE relations set x1 ='0', y1='0' WHERE element_from='abc')
I know this can be done by two separate queries but is there a way to get it in one single query?
Columns in table:
id_main
id
type
x1
y1
x2
y2
element_from
element_to
d
session
name