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.
如何获取此查询的计数?
select AccountId, * from Account
Select Count(*) as CountRecord from Account
您在错误的地方放置了别名
SELECT COUNT(*) AS CountRecord FROM (SELECT AccountId, * FROM Account) a -----------------^^^^^^^^^^^^^^^
但是你应该像这样直接计算记录:
SELECT COUNT(*) AS CountRecord FROM Account