0

I've looked at the documentation on postgresql, and I can't figure out why my CREATE TABLE is not running.

CREATE TABLE comments
(
    content VARCHAR(100),
    changed_at TIMESTAMP DEFAULT NOW() ON UPDATE SET CURRENT_TIMESTAMP
)

Is there a way to format this so it will work? Thanks in advance..

2
  • Where in the manual did you find that syntax? Commented Aug 17, 2022 at 19:44
  • No. The only way to do this is with a trigger. Commented Aug 17, 2022 at 19:44

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.