On Tuesday 04 March 2003 19:35, Jamie Jennings wrote: > Yes that must be it. Both columns are unsigned. Is > there any way to accomplish this with one query with > unsigned columns?
Take a look at cast functions: http://www.mysql.com/doc/en/Cast_Functions.html > Otherwise I will have to fetch each column seperately > (two queries) and then do the subtraction outside > MySQL (in my C code). -- 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 --------------------------------------------------------------------- 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