हिंदी

Can we have a CHAR or VARCHAR data type for contact number (mobile, landline)?

Advertisements
Advertisements

प्रश्न

Can we have a CHAR or VARCHAR data type for contact number (mobile, landline)?

लघु उत्तरीय
Advertisements

उत्तर

Yes, we can use CHAR or VARCHAR data type for storing contact numbers (mobile or landline).

A contact number should generally be stored as a CHAR or VARCHAR, not as an integer, because it may contain a country code (+91), leading zeros, spaces, or hyphens.

MobileNo VARCHAR(15)

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 8: Introduction to Structured Query Language (SQL) - Intext Questions [पृष्ठ १४९]

APPEARS IN

एनसीईआरटी Informatics Practices [English] Class 11
अध्याय 8 Introduction to Structured Query Language (SQL)
Intext Questions | Q 6. | पृष्ठ १४९
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×