Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我不确定如何问这个问题,但我会尽力而为。目前,我有一些表将索引保存到其他表中以获取信息。例如,我有一个name_id为1的行,这表明我应该查看'name'表并转到索引1。有没有直接链接一行中的一行?还有比这更好的设计选择吗?谢谢!
您想使用所谓的外键,这是 Sqlite 中对它们的解释。
这是数据库设计的首选方法
您编写一个使用 JOIN 来获取链接行的 sql 语句。