| List: | General Discussion | « Previous MessageNext Message » | |
| From: | Zak Greant | Date: | January 16 2003 8:23pm |
| Subject: | Re: Avg_row_length | ||
| View as plain text | |||
On Thu, Jan 16, 2003 at 06:47:03PM +0100, Stefan Hinz wrote: > Keith, > > thanks once again! Well, anyone here from the MySQL developer team? Or > any other guru who can explain why 10 = 11? Hi Stefan, Here is my guess. ;) CHAR columns are fixed width. A CHAR column with a width of 10 will always require 10 bytes - regardless of what is put into it. If the column also allows NULL values, then the length of all columns becomes 10 bytes + 1 byte for the NULL. Cheers! -- Zak Greant <zak@stripped> | MySQL Advocate | http://zak.fooassociates.com Developing Dynamic Web Applications with MySQL and PHP MySQL Training: Nuernburg, June 02-06, 2003 Visit http://mysql.com/training for more information "Gosh, Batman. The nobility of the almost-human porpoise." --Robin, the Boy Wonder
| Thread | ||
|---|---|---|
| • Avg_row_length | Stefan Hinz | 14 Jan |
| • RE: Avg_row_length | Jennifer Goodie | 15 Jan |
| • Re: Avg_row_length | Steve Edberg | 15 Jan |
| • Re: Avg_row_length | Dan Nelson | 15 Jan |
| • Re: Avg_row_length | Stefan Hinz | 15 Jan |
| • Re: Avg_row_length | Steve Edberg | 15 Jan |
| • Re: Avg_row_length | Keith C. Ivey | 15 Jan |
| • Re: Avg_row_length | Stefan Hinz | 16 Jan |
| • Re: Avg_row_length | Keith C. Ivey | 16 Jan |
| • Re: Avg_row_length | Stefan Hinz | 16 Jan |
| • Re: Avg_row_length | Sergei Golubchik | 16 Jan |
| • Re: Avg_row_length | Zak Greant | 16 Jan |
| • Re: Avg_row_length | gerald_clark | 16 Jan |
| • Re: Avg_row_length | Stefan Hinz | 16 Jan |
| • Re: Avg_row_length | Sergei Golubchik | 17 Jan |
| • Re: Avg_row_length | Roger Baklund | 17 Jan |
| • Re: Avg_row_length | gerald_clark | 17 Jan |
| • Re: Avg_row_length | Stefan Hinz | 17 Jan |
| • Re: Avg_row_length | Stefan Hinz | 15 Jan |
| • Re: Avg_row_length | Stefan Hinz | 15 Jan |
