I have the following database table:
CREATE TABLE pontaje
(
coda NUMBER(4) REFERENCES angajati( coda ),
data DATE,
ore NUMBER(3)
);
When I run the code :
SELECT coda, SUM(ore) AS totalore
FROM pontaje,
GROUP BY coda
I get ORA-00903: invalid table name
.
But I know the table exists because: SELECT * FROM pontaje
works.
删除表名后面的逗号。
SELECT coda, SUM(ore) AS totalore
FROM pontaje -- << remove comma
GROUP BY coda
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.