If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > How to design this feature (have 2 numbers in one field) ?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-20-04, 13:23
sunnyside sunnyside is offline
Registered User
 
Join Date: Aug 2003
Posts: 30
Question How to design this feature (have 2 numbers in one field) ?

I would like have a field in one of my tables can hold 2 different numbers same time (For example fld_people (1, 2) )

Would you tell me how I can create a field like that? Format?

Thank you!~
Reply With Quote
  #2 (permalink)  
Old 10-20-04, 19:56
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,525
varchar

would you tell me why you want a field like that?

because storing two numbers into one column violates first normal form
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 10-21-04, 00:11
sunnyside sunnyside is offline
Registered User
 
Join Date: Aug 2003
Posts: 30
Quote:
Originally Posted by r937
varchar

would you tell me why you want a field like that?

because storing two numbers into one column violates first normal form
Thank you anyway. I have changed to a different way to perform this function.
:-)
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On