मराठी

In which datatype the value stored is padded with spaces to fit the specified length.

Advertisements
Advertisements

प्रश्न

In which datatype the value stored is padded with spaces to fit the specified length. 

पर्याय

  • DATE

  • VARCHAR

  • FLOAT

  • CHAR

MCQ
Advertisements

उत्तर

CHAR

Explanation:

  1. 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.
  2. 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
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
2024-2025 (March) Board Sample Paper
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×