SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Jun 2002
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Money in mySQL Table

    I'm trying to develop a database in mySQL and I need to represent money. I'm using myPHPAdmin and every time I try using Decimal as a column type, it is automatically set as a primary key. How do I stop this or is there a better way to represent money? I'm very new at this so please give me step by step instructions, basically assume I know nothing.

  2. #2
    The short answer is yes... Herbster's Avatar
    Join Date
    Oct 2001
    Location
    Bay City, Oregon
    Posts
    715
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm using decimal for money and no problem with primary key being set, but then I already have a primary key.


Bookmarks

Posting Permissions

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