मराठी

What are the other data types supported in MySQL? Are there other variants of integer and float data type?

Advertisements
Advertisements

प्रश्न

What are the other data types supported in MySQL? Are there other variants of integer and float data type?

सविस्तर उत्तर
Advertisements

उत्तर

Category Data Types Purpose
Integer TINYINT, SMALLINT, MEDIUMINT, INT, BIGINT Used to store whole numbers.
Floating Point FLOAT, DOUBLE Used to store numbers with decimal values.
Fixed Point DECIMAL Used to store exact decimal values, especially for monetary values.
Character/String CHAR, VARCHAR, TEXT Used to store characters and text.
Date and Time DATE, TIME, DATETIME, TIMESTAMP, YEAR Used to store dates and time.
Binary BINARY, VARBINARY, BLOB Used to store binary data.
Other ENUM, SET, JSON Used to store predefined values, sets of values, and JSON data.
  1. Variants of Integer Data Type: Yes, MySQL has different variants of the integer data type. They are TINYINT, SMALLINT, MEDIUMINT, INT, and BIGINT. These types differ in the amount and range of whole numbers they can store.
  2. Variants of Float Data Type: Yes, MySQL supports FLOAT and DOUBLE as floating-point data types. FLOAT provides single precision, while DOUBLE provides double precision and can store values with greater accuracy.
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 2. | पृष्ठ १४५
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×