0

我有这 4 列的表 1

FirstName LastName State ID

包含这 2 列的表 2

ID Phone

如何使用这样的参数加入它们

SELECT Table1.FirstName, Table1.LastName FROM Table1 INNER JOIN Table2 ON Table1.ID = Table2.ID WHERE FirstName = @FirstName

这样做没有给我任何东西。请帮忙

4

1 回答 1

1
SELECT FirstName, LastName FROM Table1 INNER JOIN Table2 ON Table1.ID = Table2.ID AND FirstName = @FirstName
于 2012-12-12T02:50:26.670 回答