Discussion: Data type question
Afficher un message
Vieux 31/03/2006, 14h51   #2
noone
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Data type question

Ian Robinson wrote:

> Hi,


> I'm converting a desktop application Delphi/Paradox to a web server
> application PHP/MySQL


> What data type should I use in MySQL for the following paradox datatypes ?


> Boolean ?


see the docs...
http://dev.mysql.com/doc/refman/5.0/...ata-types.html

I would use an tinyint (use a check constraint that only allows 0,1)

> Currency ?


not sure... what is the definition of the Currency data type? Number?
Char?

possibly a decimal? example: salary DECIMAL(9,2) (for mega-sports stars?)

> TIA



  Réponse avec citation
 
Page generated in 0,07532 seconds with 9 queries