![]() | |
#81
| |||
| |||
|
#82
| |||
| |||
|
|
On 12/29/2010 3:22 PM, Axel Schwenke wrote: Jerry Stuckle<jstucklex (AT) attglobal (DOT) net> wrote: For instance, if you have an id which is always 8 characters, then a CHAR(8) field is the best way to store it. There is no need to compute the length of the field and store a length character in it. Irrelevant! Completely relevant to hundreds of thousands of expert DBAs working on high performance systems. But then you've never been in a production environment, so you wouldn't know. |
#83
| |||
| |||
|
|
Jerry Stuckle<jstucklex (AT) attglobal (DOT) net> wrote: On 12/29/2010 3:22 PM, Axel Schwenke wrote: Jerry Stuckle<jstucklex (AT) attglobal (DOT) net> wrote: For instance, if you have an id which is always 8 characters, then a CHAR(8) field is the best way to store it. There is no need to compute the length of the field and store a length character in it. Irrelevant! Completely relevant to hundreds of thousands of expert DBAs working on high performance systems. But then you've never been in a production environment, so you wouldn't know. Again you're so eager to bring an argument in your favour (under- standable, you so seldom get that chance) that you completely miss the topic. And thus your argument becomes void. One could also say you started a completely different discussion, disproving an argument that was never uttered. |
|
I did not say that the distinction CHAR vs. VARCHAR is useless. But that the declaration of a column as CHAR is just a hint and only a hint. And that the DBMS should be free to ignore that hint (for internal handling, the external view must be kept) It *might* turn out that ignoring such hints is a bad idea. But OTOH it might not. In any case such behavior should not count as a standard violation (and as it seems it doesn't anyway, looks like I remembered that point wrong) XL |
#84
| |||
| |||
|
|
I did not say that the distinction CHAR vs. VARCHAR is useless. But that the declaration of a column as CHAR is just a hint and only a hint. And that the DBMS should be free to ignore that hint (for internal handling, the external view must be kept) A CHAR has semantics that cannot be ignored. |
![]() |
| Thread Tools | |
| Display Modes | |
| |