Search
 
SCRIPT & CODE EXAMPLE
 

SQL

sql string data type

CHAR(size) -- Fixed length string which can contain letters, numbers and special characters. The size parameter sets the maximum string length, from 0 – 255 with a default of 1.

VARCHAR(size) -- Variable length string similar to CHAR(), but with a maximum string length range from 0 to 65535.

BINARY(size) -- Similar to CHAR() but stores binary byte strings.

VARBINARY(size) -- Similar to VARCHAR() but for binary byte strings.

TINYBLOB -- Holds Binary Large Objects (BLOBs) with a max length of 255 bytes.

TINYTEXT -- Holds a string with a maximum length of 255 characters. Use VARCHAR() instead, as it’s fetched much faster.

TEXT(size) -- Holds a string with a maximum length of 65535 bytes. Again, better to use VARCHAR().

BLOB(size) -- Holds Binary Large Objects (BLOBs) with a max length of 65535 bytes.

MEDIUMTEXT -- Holds a string with a maximum length of 16,777,215 characters.

MEDIUMBLOB -- Holds Binary Large Objects (BLOBs) with a max length of 16,777,215 bytes.

LONGTEXT -- Holds a string with a maximum length of 4,294,967,295 characters.

LONGBLOB -- Holds Binary Large Objects (BLOBs) with a max length of 4,294,967,295 bytes.

ENUM(a, b, c, etc…) -- A string object that only has one value, which is chosen from a list of values which you define, up to a maximum of 65535 values. If a value is added which isn’t on this list, it’s replaced with a blank value instead.

SET(a, b, c, etc…) -- A string object that can have 0 or more values, which is chosen from a list of values which you define, up to a maximum of 64 values.
Comment

PREVIOUS NEXT
Code Example
Sql :: join update query in sql 
Sql :: Configure postgresql engine for your django application 
Sql :: temp table sql 
Sql :: convert date to dd/mm/yyyy sql 
Sql :: tsql insert 
Sql :: sql convert xml to text 
Sql :: sql view where tables have same column name combine results 
Sql :: select rows with same value in a column 
Sql :: change default schema sql server 
Sql :: find a column in all tables mysql 
Sql :: sql date get month 
Sql :: SQL Server - Count number of times a specific character appears in a string 
Sql :: insert output identity 
Sql :: duplicate records in sql 
Sql :: how to update random rows in sql 
Sql :: how to drop all tables in postgresql 
Sql :: lowest salary in sql 
Sql :: sparql list all graphs 
Sql :: postgres concat 
Sql :: install sqlite npm 
Sql :: sql update table set text to lowercase 
Sql :: mysql export and import 
Sql :: create a sqlite database c# 
Sql :: sql server select first day of previous year 
Sql :: python pandas df to postgres json table 
Sql :: joomla execute raw sql 
Sql :: update and replace mysql 
Sql :: how to change the auto increment in existing table mysql 
Sql :: How to check if the column exists in sql table 
Sql :: mssql check if date is greater than today 
ADD CONTENT
Topic
Content
Source link
Name
1+4 =