sql

All things SQL and JDBC...
dharrigan 2020-09-30T06:01:28.014100Z

when you say delete everything do you also mean tags too?

dharrigan 2020-09-30T06:01:43.014500Z

btw your table for the join could be rewritten as this:

dharrigan 2020-09-30T06:02:41.015500Z

create table post_tag (post_id int references post on delete cascade, tag_id int references tag on delete cascade, primary key (post_id, tag_id));

emccue 2020-09-30T21:09:18.017400Z

@dharrigan yes, but its just curiousity - I think the real answer is the trigger