Hi! Could we please enable some services and cookies to improve your experience and our website?

SQLize | PHPize | SQLtest

Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code

A A A
Login    Share code      Blog   FAQ
Copy Format Clear
create table tbl ( number_id serial, txt varchar(64) ); insert into tbl values (1, 'тест1'), (3, 'тест2'),(2, 'тест3'),(6, 'тест4'); select * from tbl order by random() limit 1; SELECT * FROM tbl OFFSET floor(random() * (SELECT COUNT(*) FROM tbl)) LIMIT 1;

Stuck with a problem? Got Error? Ask AI support!

Copy Clear