Skip to content
Advertisement

EclipseLink Query – Select count(*) from student s not working

I am getting following exception :-

[13, 13] The left expression is missing from the arithmetic expression. [14, 14] The right expression is missing from the arithmetic expression.

Please help me analyse the problem.

P.S. If I replace the above query in my code with select * from student s, it is working fine.

JavaScript

UPDATE 1

JavaScript

Advertisement

Answer

Try using select count(s) from Student s.

Advertisement