problem with count (*) max (*) min (*)

2001-09-07 Thread Antonio Ortega Sancho

   I'm trying to do select count (*) from table. but it doesn't work

ERROR 1064: You have an error in your SQL syntax near '(*) from pendientes'
at line 1

  Same happens with max (column) and min (column).

   Do I have to  install anything else or is something wrong. I'm using
redhat 7.0 with the mysql that comes with this distribution


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: problem with count (*) max (*) min (*)

2001-09-07 Thread Peter van Dijk

On Fri, Sep 07, 2001 at 09:28:28AM +0200, Antonio Ortega Sancho wrote:
I'm trying to do select count (*) from table. but it doesn't work
 
 ERROR 1064: You have an error in your SQL syntax near '(*) from pendientes'
 at line 1
 
   Same happens with max (column) and min (column).
 
Do I have to  install anything else or is something wrong. I'm using
 redhat 7.0 with the mysql that comes with this distribution

Try count(*), max(column) and min(column). It probably doesn't accept
the space you put in between there.

Greetz, Peter
-- 
Monopolyhttp://www.dataloss.nl/monopoly.html

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: problem with count (*) max (*) min (*)

2001-09-07 Thread Carl Troein


Antonio Ortega Sancho writes:

I'm trying to do select count (*) from table. but it doesn't work

Try count(*) instead.

-- 
 Carl Troein - CĂ­rdan / Istari-PixelMagic - UIN 16353280
 [EMAIL PROTECTED] | http://pixelmagic.dyndns.org/~cirdan/
 Amiga user since '89, and damned proud of it too.


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: problem with count (*) max (*) min (*)

2001-09-07 Thread Jeremy Zawodny

On Fri, Sep 07, 2001 at 09:28:28AM +0200, Antonio Ortega Sancho wrote:
I'm trying to do select count (*) from table. but it doesn't work
 
 ERROR 1064: You have an error in your SQL syntax near '(*) from pendientes'
 at line 1
 
   Same happens with max (column) and min (column).

No space allowed after the function and the parens:

   Bad  Good
   ---  
   MIN (foo)MIN(foo)
   MAX (foo)MAX(foo)
   COUNT (*)COUNT(*)

Jeremy
-- 
Jeremy D. Zawodny, [EMAIL PROTECTED]
Technical Yahoo - Yahoo Finance
Desk: (408) 349-7878   Fax: (408) 349-5454   Cell: (408) 685-5936

MySQL 3.23.41-max: up 1 days, processed 18,902,837 queries (190/sec. avg)

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: problem with count (*) max (*) min (*)

2001-09-07 Thread Chris Thorpe

It would appear that you are putting spaces between Count and the bracket
which as far as I can tell will not work hence try count(*) etc...

Chris Thorpe

- Original Message -
From: Antonio Ortega Sancho [EMAIL PROTECTED]
To: Mysql (E-mail) [EMAIL PROTECTED]
Sent: Friday, September 07, 2001 8:28 AM
Subject: problem with count (*) max (*) min (*)


I'm trying to do select count (*) from table. but it doesn't work

 ERROR 1064: You have an error in your SQL syntax near '(*) from
pendientes'
 at line 1

   Same happens with max (column) and min (column).

Do I have to  install anything else or is something wrong. I'm using
 redhat 7.0 with the mysql that comes with this distribution


 -
 Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)

 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail
[EMAIL PROTECTED]
 Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php