可能重复:
sql 2005 - 该列被多次指定
SELECT TOP(20) *
FROM (SELECT *
FROM [3D_Benchmarks]
JOIN [3D_Slugs] ON [3D_Benchmarks].Id = [3D_Slugs].BenchmarkId) AS tb
ORDER BY tb.FPS DESC;
我得到这个错误:
为“tb”多次指定了“Id”列。
可能重复:
sql 2005 - 该列被多次指定
SELECT TOP(20) *
FROM (SELECT *
FROM [3D_Benchmarks]
JOIN [3D_Slugs] ON [3D_Benchmarks].Id = [3D_Slugs].BenchmarkId) AS tb
ORDER BY tb.FPS DESC;
我得到这个错误:
为“tb”多次指定了“Id”列。
而不是select *
使用select table.columnname
or tablename.*
。
SELECT *
FROM [3D_Benchmarks]
JOIN [3D_Slugs] ON [3D_Benchmarks].Id = [3D_Slugs].BenchmarkId) AS tb
3D_Benchmarks 有 id 列,3D_Slugs 也有 id 列。
例如:[3D_Benchmarks].id 作为辅助,3D_Slugs.id 作为出价