2013-10-30 22 views
0

我有一個表有以下的列如何交叉引用搜索數據庫?

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連接所有這些表中,這樣的引用表中的數據也可以查詢查詢。加入這麼多表格是合理的,還是我可以如何提高效率?

回答

0

如果你有修改表格模式的奢侈,你可以去Big table型設計。