How to delete a common row from multiple tables using SQL -


i understand can delete multiple tables using joins. but, i'm not sure how that. tried using statement , didn't work either.

delete trm, val  mcs.stg_mdcr_trmntn_rpt trm, mcs.stg_mdcr_vldtn_rpt val trm.import_proc_id = 156; 

what's wrong with

delete mcs.stg_mdcr_trmntn_rpt  import_proc_id = 156;  delete mcs.stg_mdcr_vldtn_rpt import_proc_id = 156;  commit; 

Comments

Popular posts from this blog

Why does Go error when trying to marshal this JSON? -

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

python - Pygame. TypeError: 'pygame.Surface' object is not callable -