SQL query multiple tables

后端 未结 6 1148
予麋鹿
予麋鹿 2021-01-24 22:41

I have 2 tables and I need to select the relative information, need some help with the query.

Table 2 has ID, MaskID columns.

6条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-24 23:34

    you shoud use this query

    select ID,MaskName,Total from Table1 Inner join Table2 on Table1.MaskID = Table2.MaskId where ID = "given value"

提交回复
热议问题