SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
create table tbl (id int, from_id int, to_id int); insert into tbl values (1, 20, 32), (2, 76, 10); select * from tbl; select * from tbl where from_id + to_id = 32 + 20 and abs(from_id - to_id) = abs(32 - 20); select * from tbl where from_id + to_id = 20 + 32 and abs(from_id - to_id) = abs(20 - 32);
Stuck with a problem? Got Error? Ask ChatGPT!
Copy Clear