I have following PostgreSQL create script
CREATE SEQUENCE seq_tbl_ct_yr2_id START (select max(ct_tran_id)+1 tranid from tbl_ct);
this doestnt create sequence arising folloeing error:
ERROR: syntax error at or near "(" LINE 1: create sequence test_1 start (select 1)
for test purpose i tested following scripts
create sequence test start 1 -- this works
create sequence test_1 start (select 1) -- this doesnt work
how to overcome this ??
Note : PostgreSQL 9.2