SQLize Online / PHPize Online

A A A
Share   Donate   Blog   Popular
Copy Format Clear
create function test() returns interval language plpgsql as $$ declare ts_current timestamp; res interval; begin select clock_timestamp() into ts_current; perform pg_sleep(1); select clock_timestamp() - ts_current into res; return res; end; $$ ; select 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