Sqlite 使用外键在一个查询中删除多个表
我有一个post表,它是一个外键,有3个表。 我想如果我删除帖子,所有的评论图片和喜欢删除以及Sqlite 使用外键在一个查询中删除多个表,sqlite,Sqlite,我有一个post表,它是一个外键,有3个表。 我想如果我删除帖子,所有的评论图片和喜欢删除以及post\u id post table post_id text images_id 1 post 1 images table images_id image 1 text comments table comments_id comment post_id 1 text 1 likes table
post\u id
post table
post_id text images_id
1 post 1
images table
images_id image
1 text
comments table
comments_id comment post_id
1 text 1
likes table
like_id status post_id
1 1 1
如何在一个查询中做到这一点???阅读以下内容:即使它不拼写drop,我发现这个问题的标题令人不安。@greybeard欢迎您更新/改写它,以减少干扰。