MySQL has the ability to declare user variables. In some other DBMS there are analogues to this. Question: if I make two sql read requests, is a write operation possible between them? Example:
SELECT @min_price:=MIN(price),@max_price:=MAX(price) FROM shop; SELECT * FROM shop WHERE price=@min_price OR price=@max_price; The example is taken from https://dev.mysql.com/doc/refman/5.7/en/example-user-variables.html . In particular, I’m wondering if the table can, for example, delete the maximum value after the first, but before the second query, so the second query will return an incorrect result.