SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
SELECT GREATEST(1,4,7,3,9); SELECT LEAST('z', 'a', 'f', 'z', '1'); SELECT LEAST('z', 'a', 'f', 'z', '1', -1); CREATE TABLE Tbl (a int, b int); INSERT INTO Tbl VALUES (1, 3), (9, 2), (0, 0); SELECT a, b, LEAST(a, b) least_ab, GREATEST(a, b) greatest_ab FROM Tbl;

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear