Advertisements
Advertisements
प्रश्न
In which datatype the value stored is padded with spaces to fit the specified length.
विकल्प
DATE
VARCHAR
FLOAT
CHAR
MCQ
उत्तर
CHAR
Explanation:
- CHAR is a fixed-length SQL datatype. When a value in a CHAR field is less than the specified length, it is padded with spaces.
- For example, if you construct a CHAR(5) column and enter the value 'Hi', the database will save it as 'Hi' (with three spaces).
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?