語法一:當資料太大量時不要用,請使用語法三
Select * From TableA
Where TableA.Field_1 IN (Select Field_1 From TableB)
語法二:當資料太大量時不要用,請使用語法三
Select * From TableA
Inner Join TableB On TableA.Field_1 = TableB_Field1
Inner Join TableB On TableA.Field_1 = TableB_Field1
語法三:
Select * From TableA as A
Where Exists (Select Field_1 From TableB Where A.Field_1 = Field1)