I have lot of queries like this:
create table results
(
id bigint,
order_id bigint,
article_id bigint default 0 ,
check_id bigint,
status text(1),
total_units bigint,
units_checked bigint,
endtime bigint default 0,
tenantid text(5),
PRIMARY KEY (id,check_id,order_id, article_id, (tenantid,order_id,article_id,check_id))
-- constraint results_id_pk primary key (id),
-- constraint results_check_id_fk foreign key (check_id) references checks (id),
-- constraint results_order_id_fk foreign key (order_id) references orders (id),
-- constraint results_article_id_fk foreign key (article_id) references articles (id),
-- unique(tenantid,order_id,article_id,check_id)
);
I would like to delete all lines starts with '--'.
I tried a variety of queries as suggested in this question:
^[-].*
^(-).*\r\n
^(\s)*(-).*(\r\n|\r|\n)?
Unfortunately, none of these work for me.