gpt4 book ai didi

mysql - 如何交叉引用搜索数据库?

转载 作者:行者123 更新时间:2023-11-30 01:06:44 25 4
gpt4 key购买 nike

我有一个包含以下列的表格

 id       | id of row 
name | id referencing visitor_table
reason | array of ids referencing reason table
comment | comment value
indate | indate value
contact | id referencing contacts table

当用户输入文本时,我需要执行一个查询,通过 ID 连接所有这些表,以便也可以查询引用表中的数据。加入这么多表是否合理,或者我如何才能提高效率?

最佳答案

如果您有能力修改表架构,您可以选择 Big table类型设计。

关于mysql - 如何交叉引用搜索数据库?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19693917/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com