SELECT CONCAT(data1*100,'%') as percdata1, data2, data3 FROM table;
John Halladay <[EMAIL PROTECTED]> wrote:
I can't find this in the manual (maybe I'm looking in the wrong place).
How
do I show a value as a percent? For example.
SELECT data1, data2, data3 FROM table;
Assuming data1 is 0.25, how do I show it as 25%?
SELECT PERC(data1), data2, data3 FROM table;?????
Thanks.
John Halladay
---------------------------------------------------------------------
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