sqlite3语句可以把文章的发表用户ID 和 用户名表的ID关联起来 并返回吗?
发布于 8 年前 作者 NOOZN 2608 次浏览 来自 问答

untitled1.png 数据库中post_table中的 author 是发表文章的用户名的 ID {…,author:12} 想在通过post_table中的ID查文章的时候 post_table中的 author 返回出来的是 user_table相对应 ID的一整行 {…,author:{id:12,username:“test”…}}*

回到顶部