![]() Let us insert data into the table: – insert into student_sports_data values(1,'Sai','Y','Y','N','Y','Y','N','Y') Swimming enum('Y','N')/*- ENUM Datatypecolumn-*/ Table creation: – create table Student_Sports_data Let us consider a simple example of the same: – If we check the list of all users, the columns specified in the user table are mostly defined as an ENUM data type. ![]() Let us see where the ENUM is usually defined in MySQL. ![]() It has readable queries, which makes it a readable query and output.), which represent the string values because of which it has compact data storage. MySQL ENUM uses numeric indexes (1, 2, 3.Here the values for the “column_name1” and “column_name2” are one among the list specified. Let us see the syntax of how we create the column of ENUM datatype: – create tableĬolumn_name1 ENUM(value1, value2.),/ * - ENUM Data type column - * /Ĭolumn_name2 ENUM(value1, value2.),/ * - ENUM Data type column - * / The initial overviews are intentionally brief.In this session, we will learn about the ENUM data type with syntax along with the syntax: – Types in each category, and a summary of the data type storage (character and byte) types, spatial types, and theĪn overview and more detailed description of the properties of the Several categories: numeric types, date and time types, string MEDIUMINT, BIGINT 11.1.3 Fixed-Point Types (Exact Value) - DECIMAL, NUMERIC 11.1.4 Floating-Point Types (Approximate Value) - FLOAT, DOUBLE 11.1.5 Bit-Value Type - BIT 11.1.6 Numeric Type Attributes 11.1.7 Out-of-Range and Overflow Handling 11.2 Date and Time Data Types 11.2.1 Date and Time Data Type Syntax 11.2.2 The DATE, DATETIME, and TIMESTAMP Types 11.2.3 The TIME Type 11.2.4 The YEAR Type 11.2.5 Automatic Initialization and Updating for TIMESTAMP and DATETIME 11.2.6 Fractional Seconds in Time Values 11.2.7 What Calendar Is Used By MySQL? 11.2.8 Conversion Between Date and Time Types 11.2.9 2-Digit Years in Dates 11.3 String Data Types 11.3.1 String Data Type Syntax 11.3.2 The CHAR and VARCHAR Types 11.3.3 The BINARY and VARBINARY Types 11.3.4 The BLOB and TEXT Types 11.3.5 The ENUM Type 11.3.6 The SET Type 11.4 Spatial Data Types 11.4.1 Spatial Data Types 11.4.2 The OpenGIS Geometry Model 11.4.3 Supported Spatial Data Formats 11.4.4 Geometry Well-Formedness and Validity 11.4.5 Spatial Reference System Support 11.4.6 Creating Spatial Columns 11.4.7 Populating Spatial Columns 11.4.8 Fetching Spatial Data 11.4.9 Optimizing Spatial Analysis 11.4.10 Creating Spatial Indexes 11.4.11 Using Spatial Indexes 11.5 The JSON Data Type 11.6 Data Type Default Values 11.7 Data Type Storage Requirements 11.8 Choosing the Right Type for a Column 11.9 Using Data Types from Other Database Engines ![]() Table of Contents 11.1 Numeric Data Types 11.1.1 Numeric Data Type Syntax 11.1.2 Integer Types (Exact Value) - INTEGER, INT, SMALLINT, TINYINT,
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |