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.
我有两个这样的表:
Table 1 id code classID 43 EDGE-10 13 Table 2 classID class 13 T-Shirts
如何交叉引用第一个表中的 classID 以将类加入视图中的表 1?
任何帮助深表感谢!
像这样的东西怎么样
SELECT * FROM Table1 t1 INNER JOIN Table2 t2 ON t1.classID = t2.classID
也许也可以在这里阅读
JOIN 简介 – JOIN 基础