I want to do the following
ALTER TABLE runs ADD COLUMN userId bigint NOT NULL DEFAULT (SELECT id FROM users WHERE email = 'admin@example.com');
but he continues to give a syntax error. How could I do this? Any help is much appreciated .;)
source
share