why varchar takes 2 extra bytes?
Answers were Sorted based on User's Feedback
Answer / mirza baig
to store the exact no. of characters stored in the varchar
| Is This Answer Correct ? | 7 Yes | 2 No |
Answer / yuvaevergreen
to store the length of the data in the variable..
>>when char is used, spaces are padded to the length of the
vraiable.
>>In varchar, spaces are not padded, exact data alone is
stored along with the length.
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / quesanswer
Each VARCHAR has two extra bytes reserved for it. One bite
for the preceding NULL indicator and one trailing byte
because VARCHAR is implemented as a ZSTRING.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / kallol
The two bytes are for the number of bytes for the binary
length of the field
| Is This Answer Correct ? | 1 Yes | 1 No |
Highlight the need for Performance Tuning.
How to explain project Architecture and flow in teradata interviews?Can please anyone help on this? Am new to teradata.
0 Answers Infosys, Wells Fargo,
What is meant by a node?
Hi, If anyone has TD 14 Basics dumps or study materials, please share. nirmaaal1991@gmail.com
Does SDLC changes when you use Teradata instead of Oracle?
what is the difference between bpo and call centre?
Why are oltp database designs not generally a good idea for a data warehouse?
What is Difference b/w PI & PPI?how to implement PPI?
Explain teradata vs. Redshift?
If the PMON is not working then how do you manage and monitor all processes, resources and sessions etc.
What do you mean by caching in teradata?
write a query following data. 123.45 is input.write a query after decimal (ex:.45) load into database ?how it possible?