Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2004
    Posts
    1

    Unanswered: Formatting money values in mySQL

    I have a table that contains numeric values. These values actually correspond to dollars and cents. Does mySQL have a function that will format the values (i.e., 2000000) to a traditional dollar/cents format (i.e., $2,000,000).

  2. #2
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    select concat('$',format(moneyfld,2)) as formattedmoneyfld
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •