SQLize Online / PHPize Online

A A A
Share   Donate   Blog   Popular
Copy Format Clear
CREATE TABLE Test ( id int, birthday date, hired_at date ); INSERT INTO Test Values (1, NULL), (2, NULL), (3, NULL); UPDATE Test SET birthday = ( '1960-01-01'::date + round(random()*(now()::date - '1960-01-01'::date))::int ); UPDATE Test SET hired_at = ( birthday + (18 * 365) + round(random()*(now()::date - birthday - (18 * 365)))::int ); SELECT * FROM Test
Stuck with a problem? Need help? Ask professionals on our Telegram channel!
Join the channel
Your quersion is posted.
Join our Telegram channel and get answers.
Send
Copy