Problem with count()
Posted by:
spwaste
Date: March 16, 2005 12:00AM
Hi, all. I run the following commands in MySQL:
create table a (a int);
create table b (b int);
select count(*)
from a, b;
select count(a.a)
from a, b;
select count(a.*)
from a, b;
The last statement results in a syntax error, but not the previous two. What's wrong? Count() takes one attribute or all, is it?
Subject
Written By
Posted
Problem with count()
March 16, 2005 12:00AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.