I am writing a library which is using mysql. I need to know the count of the *maximum* decimals of a NUMERIC column before issuing a mysql_fetch_row().
I get the width of the field by: MYSQL_FIELD *fields = mysql_fetch_fields (MYResult); printf ("Width: %d\n", fields[i].length); Doing a "DESCRIBE TABLE" is not an option since another query would have to be executed for every select statement. Thanx in advance, Stefan ______________________________________________________________________________ WEB.DE Club - jetzt testen fur 1 Euro! Nutzen Sie Ihre Chance unter https://digitaledienste.web.de/Club/formular/?mc=021105 --------------------------------------------------------------------- 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