0

It seems like DuckDB does not support this:

CREATE SEQUENCE seq_personid START 1 IF NOT EXIST;

Postres has this feature https://www.postgresql.org/docs/current/sql-createsequence.html

What would be the best workaround if DuckDB does not support this?

Dmitry Petrov
  • 1,490
  • 1
  • 19
  • 34

1 Answers1

1

I don't think you are using the if not exists correctly.

It should be:

CREATE SEQUENCE IF NOT EXISTS seq_personid START 1;
Pedro Holanda
  • 261
  • 1
  • 3