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 example ( id BIGSERIAL PRIMARY KEY, rv_id BIGINT NOT NULL, uuid VARCHAR(36) ); INSERT INTO example (rv_id, uuid) ( VALUES (22, 'tom'), (23, 'angela') ) RETURNING *; ALTER TABLE example ADD COLUMN offset_id BIGINT GENERATED ALWAYS AS IDENTITY(SEQUENCE NAME offset_sequence) ; SELECT setval('offset_sequence', (SELECT EXTRACT(epoch FROM now())+10000000000));

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

Copy Clear