Noamn <[EMAIL PROTECTED]> wrote: > I'm using v3.23.51 on Linux. > > Can anyone explain why a simple 'sum' select won't work?? Here is the > example: > > mysql> select sum (id), pet from visits group by pet; > ERROR 1064: You have an error in your SQL syntax near '(id), pet from visits > group by pet' at line 1
Remove space between 'sum' and bracket. -- For technical support contracts, goto https://order.mysql.com/?ref=ensita This email is sponsored by Ensita.net http://www.ensita.net/ __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Victoria Reznichenko / /|_/ / // /\ \/ /_/ / /__ [EMAIL PROTECTED] /_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.net <___/ www.mysql.com -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]