[MySQL] 如何參照欄位的值查詢 table?

看板Database作者 (守護神)時間18年前 (2007/05/03 14:57), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
例如我有四張表 tableindex 和 tablex, table1, tablemark 等 在 tableindex 中有三個欄位 欄位 rowindex rowdata usetable 值 1 rowtest x 2 rowtiger 1 3 rowlion mark 4 rowtest x usetable 代表要使用的表 而 tablex, table1, tablemark 都有 rowindex 這個欄位,所存的值和 tableindex.rowindex 一致 那要如何取出在各個表中所儲存的資料排序? 以上面的例子 就是要取出 tablex.rowtest(當 rowindex=1 | 4), table1.rowtiger(當 rowindex=2), tablemark.rowlion(當 rowindex=3) -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.113.158.15
文章代碼(AID): #16EOVQ7d (Database)