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 > nulls and “” (empty strings) takes up disk space ?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-30-05, 04:53
Eng Goh Eng Goh is offline
Registered User
 
Join Date: Nov 2005
Posts: 9
nulls and “” (empty strings) takes up disk space ?

I understand that nulls and “” (empty strings) will take up disk space for MySQL CHAR(M) data types. If you have CHAR(10), it will take up 10 bytes of space even though the data is null or “”.

What about the other fields like INTEGER, TINYINT, VARCHAR, BLOB etc etc ?
Can anyone point me to …something like a table… where it shows which data types take up space and which don’t? Or all behave like CHAR(M) ?

Thanks.
Reply With Quote
  #2 (permalink)  
Old 11-30-05, 14:41
jfulton jfulton is offline
Registered User
 
Join Date: Apr 2005
Location: Baltimore, MD
Posts: 297
Reply With Quote
  #3 (permalink)  
Old 12-02-05, 10:29
Eng Goh Eng Goh is offline
Registered User
 
Join Date: Nov 2005
Posts: 9
jfulton,

Thanks for the reply..but...
I don't think those URLs has the answer to my question.
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