How to set pound

Discussion in 'MySQL' started by shaileshk, Aug 31, 2006.

  1. #1
    Hi,
    How to set pound on maney fild in MS SQL

    like £#,##0.00 this we can set format on MS Access but i dont know how to set on MS SQL

    Thanks
    shailesh
     
    shaileshk, Aug 31, 2006 IP
  2. rosytoes

    rosytoes Peon

    Messages:
    230
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Currency is stored as Decimal or Float, you format it using php or asp when you retrieve the data.
     
    rosytoes, Aug 31, 2006 IP
  3. shaileshk

    shaileshk Well-Known Member

    Messages:
    455
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    108
    #3
    no i dont want to set on using script in access currance data type have format option so we can set pound format but i cant able to set pound on MS SQL database
     
    shaileshk, Sep 1, 2006 IP
  4. rosytoes

    rosytoes Peon

    Messages:
    230
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Just read your original message again, you were referring to MSSQL, I was referring to MYSQL when I replied. Sorry I don't know about MSSQL.
     
    rosytoes, Sep 1, 2006 IP
  5. swirl1980

    swirl1980 Peon

    Messages:
    53
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    as far as i'm aware there is no "currency" format in MSSQL. U store it as decimal, money or float and format on output....
     
    swirl1980, Sep 4, 2006 IP
  6. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #6
    mssql has a money field doesn't it? It doesn't treat it with a $xxx.xx but it does do 2-place decimal. Otherwise just do decimal. Hmm - it might be .NET that has a datatype of money? well... something does, lol
     
    ccoonen, Sep 7, 2006 IP
  7. swirl1980

    swirl1980 Peon

    Messages:
    53
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    ur right, MSSQL does have a money field but it literally is a decimal type with a different name..........
     
    swirl1980, Sep 11, 2006 IP