pascal,
Friday, March 29, 2002, 2:53:23 PM, you wrote:

pbln> in mysql 3.23.45

pbln> I have a numeric field  N with null values allowed and null 
pbln> values in some rows of the database


pbln> when i ask select sum(N) from table 

pbln> the result is the sum of non null values (like if null values 
pbln> converted to zero)  and not "null" as expected for a sum of 
pbln> values with null in it.

pbln> is it a bug ?

Null is an unidentified value, but MySQL will store 0 or ''. You can read about it at:
  http://www.mysql.com/doc/B/u/Bugs.html

pbln> thanks






-- 
For technical support contracts, goto https://order.mysql.com/
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Egor Egorov
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com



---------------------------------------------------------------------
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

Reply via email to