Unix Technical Forum

how to define new dataypes

This is a discussion on how to define new dataypes within the MySQL forums, part of the Database Server Software category; --> Hello, I would like to define a new datatype, the datatype gender should only include either m or f. ...


Go Back   Unix Technical Forum > Database Server Software > MySQL

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 08:58 AM
Dennis Kuntzemann
 
Posts: n/a
Default how to define new dataypes

Hello,

I would like to define a new datatype, the datatype gender should only
include either m or f. how can i do this?

thank you very much,

dennis


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 08:58 AM
Peter H. Coffin
 
Posts: n/a
Default Re: how to define new dataypes

On Mon, 24 Jul 2006 11:10:11 +0800, Dennis Kuntzemann wrote:
> Hello,
>
> I would like to define a new datatype, the datatype gender should only
> include either m or f. how can i do this?


See "Enumerated Type" http://dev.mysql.com/doc/refman/5.0/en/enum.html
for information as to how to do this.

--
Whenever you look at a beautiful woman,
always remember that somewhere, someone is tired of her.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:54 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com