SlideShare a Scribd company logo
MySQL String Functions
Function Description
ASCII Returns the ASCII value for the specific
character
CHAR_LENGTH Returns the length of a string (in characters)
CHARACTER_LENGTH Returns the length of a string (in characters)
CONCAT Adds two or more expressions together
CONCAT_WS Adds two or more expressions together with a
separator
FIELD Returns the index position of a value in a list of
values
FIND_IN_SET Returns the position of a string within a list of
strings
FORMAT Formats a number to a format like
"#,###,###.##", rounded to a specified
number of decimal places
INSERT Inserts a string within a string at the specified
position and for a certain number of characters
INSTR Returns the position of the first occurrence of a
string in another string
LCASE Converts a string to lower-case
LEFT Extracts a number of characters from a string
(starting from left)
LENGTH Returns the length of a string (in bytes)
LOCATE Returns the position of the first occurrence of a
substring in a string
LOWER Converts a string to lower-case
LPAD Left-pads a string with another string, to a
certain length
LTRIM Removes leading spaces from a string
MID Extracts a substring from a string (starting at
any position)
POSITION Returns the position of the first occurrence of a
substring in a string
REPEAT Repeats a string as many times as specified
REPLACE Replaces all occurrences of a substring within a
string, with a new substring
REVERSE Reverses a string and returns the result
RIGHT Extracts a number of characters from a string
(starting from right)
RPAD Right-pads a string with another string, to a
certain length
RTRIM Removes trailing spaces from a string
SPACE Returns a string of the specified number of
space characters
STRCMP Compares two strings
SUBSTR Extracts a substring from a string (starting at
any position)
SUBSTRING Extracts a substring from a string (starting at
any position)
SUBSTRING_INDEX Returns a substring of a string before a
specified number of delimiter occurs
TRIM Removes leading and trailing spaces from a
string
UCASE Converts a string to upper-case
UPPER Converts a string to upper-case

More Related Content

PPTX
MySQL String Functions.pptx
PPTX
String function in my sql
PPT
Character function in MySQL | Oracle
PDF
6-Final MySQL Library Functions.pdf
PPTX
MySQL 5.7 String Functions
PPTX
character function in database managemnet system
PPT
9780538745840 ppt ch03
ODP
Mysql1
MySQL String Functions.pptx
String function in my sql
Character function in MySQL | Oracle
6-Final MySQL Library Functions.pdf
MySQL 5.7 String Functions
character function in database managemnet system
9780538745840 ppt ch03
Mysql1

Similar to MySQL String Functions.docx (20)

PPT
ODP
PPTX
MSAvMySQL.pptx
PPTX
string functions in SQL ujjwal matoliya.pptx
PPT
Manipulating strings
DOCX
PDF
MySQL Cheatsheet
PPT
Lect 14 Zaheer Abbas
DOCX
Mysql Functions with examples CBSE INDIA 11th class NCERT
PDF
Simple Queriebhjjnhhbbbbnnnnjjs In SQL.pdf
PPTX
SQL python for beginners easy explanation with concepts and output .pptx
PPTX
String handling and arrays by Dr.C.R.Dhivyaa Kongu Engineering College
PPTX
UNIT II (7).pptx
PPTX
UNIT II (7).pptx
PDF
Lesson03 学会使用单行函数
PPTX
Regex posix
PPTX
advanced mySQL Database tutorials and RDBMS tutorials.pptx
PPTX
V23 function-2
PPT
Chapter-5.ppt
MSAvMySQL.pptx
string functions in SQL ujjwal matoliya.pptx
Manipulating strings
MySQL Cheatsheet
Lect 14 Zaheer Abbas
Mysql Functions with examples CBSE INDIA 11th class NCERT
Simple Queriebhjjnhhbbbbnnnnjjs In SQL.pdf
SQL python for beginners easy explanation with concepts and output .pptx
String handling and arrays by Dr.C.R.Dhivyaa Kongu Engineering College
UNIT II (7).pptx
UNIT II (7).pptx
Lesson03 学会使用单行函数
Regex posix
advanced mySQL Database tutorials and RDBMS tutorials.pptx
V23 function-2
Chapter-5.ppt
Ad

More from RUBAB79 (14)

DOCX
Database.docx
DOCX
RDBMS.docx
DOCX
Difference between RDBMS and DBMS.docx
PPTX
SQL Keywords and Functions.pptx
PPTX
Ms Access 1.pptx
PPTX
Lecture 4-RDBMS.pptx
PPTX
SQL Introduction.pptx
PPTX
SQL Operators.pptx
PPTX
SQL Commands Part 1.pptx
PPTX
Database Lecture 3.pptx
PPTX
SQL Conversion Functions.pptx
PPTX
SQL Commands Part 3.pptx
PPTX
SQL Commands Part 2.pptx
PPTX
DATABASE Lecture 1 and 2.pptx
Database.docx
RDBMS.docx
Difference between RDBMS and DBMS.docx
SQL Keywords and Functions.pptx
Ms Access 1.pptx
Lecture 4-RDBMS.pptx
SQL Introduction.pptx
SQL Operators.pptx
SQL Commands Part 1.pptx
Database Lecture 3.pptx
SQL Conversion Functions.pptx
SQL Commands Part 3.pptx
SQL Commands Part 2.pptx
DATABASE Lecture 1 and 2.pptx
Ad

Recently uploaded (20)

PDF
Sports Quiz easy sports quiz sports quiz
PPTX
Cell Types and Its function , kingdom of life
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
Institutional Correction lecture only . . .
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
01-Introduction-to-Information-Management.pdf
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
master seminar digital applications in india
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Complications of Minimal Access Surgery at WLH
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Insiders guide to clinical Medicine.pdf
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Classroom Observation Tools for Teachers
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
Sports Quiz easy sports quiz sports quiz
Cell Types and Its function , kingdom of life
Abdominal Access Techniques with Prof. Dr. R K Mishra
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
O5-L3 Freight Transport Ops (International) V1.pdf
Institutional Correction lecture only . . .
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
01-Introduction-to-Information-Management.pdf
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Microbial disease of the cardiovascular and lymphatic systems
master seminar digital applications in india
O7-L3 Supply Chain Operations - ICLT Program
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Complications of Minimal Access Surgery at WLH
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Insiders guide to clinical Medicine.pdf
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Classroom Observation Tools for Teachers
2.FourierTransform-ShortQuestionswithAnswers.pdf
Anesthesia in Laparoscopic Surgery in India

MySQL String Functions.docx

  • 1. MySQL String Functions Function Description ASCII Returns the ASCII value for the specific character CHAR_LENGTH Returns the length of a string (in characters) CHARACTER_LENGTH Returns the length of a string (in characters) CONCAT Adds two or more expressions together CONCAT_WS Adds two or more expressions together with a separator FIELD Returns the index position of a value in a list of values FIND_IN_SET Returns the position of a string within a list of strings FORMAT Formats a number to a format like "#,###,###.##", rounded to a specified number of decimal places
  • 2. INSERT Inserts a string within a string at the specified position and for a certain number of characters INSTR Returns the position of the first occurrence of a string in another string LCASE Converts a string to lower-case LEFT Extracts a number of characters from a string (starting from left) LENGTH Returns the length of a string (in bytes) LOCATE Returns the position of the first occurrence of a substring in a string LOWER Converts a string to lower-case LPAD Left-pads a string with another string, to a certain length LTRIM Removes leading spaces from a string MID Extracts a substring from a string (starting at any position)
  • 3. POSITION Returns the position of the first occurrence of a substring in a string REPEAT Repeats a string as many times as specified REPLACE Replaces all occurrences of a substring within a string, with a new substring REVERSE Reverses a string and returns the result RIGHT Extracts a number of characters from a string (starting from right) RPAD Right-pads a string with another string, to a certain length RTRIM Removes trailing spaces from a string SPACE Returns a string of the specified number of space characters STRCMP Compares two strings SUBSTR Extracts a substring from a string (starting at any position)
  • 4. SUBSTRING Extracts a substring from a string (starting at any position) SUBSTRING_INDEX Returns a substring of a string before a specified number of delimiter occurs TRIM Removes leading and trailing spaces from a string UCASE Converts a string to upper-case UPPER Converts a string to upper-case