
- MySQL Basics
- MySQL - Home
- MySQL - Introduction
- MySQL - Features
- MySQL - Versions
- MySQL - Variables
- MySQL - Installation
- MySQL - Administration
- MySQL - PHP Syntax
- MySQL - Node.js Syntax
- MySQL - Java Syntax
- MySQL - Python Syntax
- MySQL - Connection
- MySQL - Workbench
- MySQL Databases
- MySQL - Create Database
- MySQL - Drop Database
- MySQL - Select Database
- MySQL - Show Database
- MySQL - Copy Database
- MySQL - Database Export
- MySQL - Database Import
- MySQL - Database Info
- MySQL Users
- MySQL - Create Users
- MySQL - Drop Users
- MySQL - Show Users
- MySQL - Change Password
- MySQL - Grant Privileges
- MySQL - Show Privileges
- MySQL - Revoke Privileges
- MySQL - Lock User Account
- MySQL - Unlock User Account
- MySQL Tables
- MySQL - Create Tables
- MySQL - Show Tables
- MySQL - Alter Tables
- MySQL - Rename Tables
- MySQL - Clone Tables
- MySQL - Truncate Tables
- MySQL - Temporary Tables
- MySQL - Repair Tables
- MySQL - Describe Tables
- MySQL - Add/Delete Columns
- MySQL - Show Columns
- MySQL - Rename Columns
- MySQL - Table Locking
- MySQL - Drop Tables
- MySQL - Derived Tables
- MySQL Queries
- MySQL - Queries
- MySQL - Constraints
- MySQL - Insert Query
- MySQL - Select Query
- MySQL - Update Query
- MySQL - Delete Query
- MySQL - Replace Query
- MySQL - Insert Ignore
- MySQL - Insert on Duplicate Key Update
- MySQL - Insert Into Select
- MySQL Indexes
- MySQL - Indexes
- MySQL - Create Index
- MySQL - Drop Index
- MySQL - Show Indexes
- MySQL - Unique Index
- MySQL - Clustered Index
- MySQL - Non-Clustered Index
- MySQL Operators and Clauses
- MySQL - Where Clause
- MySQL - Limit Clause
- MySQL - Distinct Clause
- MySQL - Order By Clause
- MySQL - Group By Clause
- MySQL - Having Clause
- MySQL - AND Operator
- MySQL - OR Operator
- MySQL - Like Operator
- MySQL - IN Operator
- MySQL - ANY Operator
- MySQL - EXISTS Operator
- MySQL - NOT Operator
- MySQL - NOT EQUAL Operator
- MySQL - IS NULL Operator
- MySQL - IS NOT NULL Operator
- MySQL - Between Operator
- MySQL - UNION Operator
- MySQL - UNION vs UNION ALL
- MySQL - MINUS Operator
- MySQL - INTERSECT Operator
- MySQL - INTERVAL Operator
- MySQL Joins
- MySQL - Using Joins
- MySQL - Inner Join
- MySQL - Left Join
- MySQL - Right Join
- MySQL - Cross Join
- MySQL - Full Join
- MySQL - Self Join
- MySQL - Delete Join
- MySQL - Update Join
- MySQL - Union vs Join
- MySQL Keys
- MySQL - Unique Key
- MySQL - Primary Key
- MySQL - Foreign Key
- MySQL - Composite Key
- MySQL - Alternate Key
- MySQL Triggers
- MySQL - Triggers
- MySQL - Create Trigger
- MySQL - Show Trigger
- MySQL - Drop Trigger
- MySQL - Before Insert Trigger
- MySQL - After Insert Trigger
- MySQL - Before Update Trigger
- MySQL - After Update Trigger
- MySQL - Before Delete Trigger
- MySQL - After Delete Trigger
- MySQL Data Types
- MySQL - Data Types
- MySQL - VARCHAR
- MySQL - BOOLEAN
- MySQL - ENUM
- MySQL - DECIMAL
- MySQL - INT
- MySQL - FLOAT
- MySQL - BIT
- MySQL - TINYINT
- MySQL - BLOB
- MySQL - SET
- MySQL Regular Expressions
- MySQL - Regular Expressions
- MySQL - RLIKE Operator
- MySQL - NOT LIKE Operator
- MySQL - NOT REGEXP Operator
- MySQL - regexp_instr() Function
- MySQL - regexp_like() Function
- MySQL - regexp_replace() Function
- MySQL - regexp_substr() Function
- MySQL Fulltext Search
- MySQL - Fulltext Search
- MySQL - Natural Language Fulltext Search
- MySQL - Boolean Fulltext Search
- MySQL - Query Expansion Fulltext Search
- MySQL - ngram Fulltext Parser
- MySQL Functions & Operators
- MySQL - Date and Time Functions
- MySQL - Arithmetic Operators
- MySQL - Numeric Functions
- MySQL - String Functions
- MySQL - Aggregate Functions
- MySQL Misc Concepts
- MySQL - NULL Values
- MySQL - Transactions
- MySQL - Using Sequences
- MySQL - Handling Duplicates
- MySQL - SQL Injection
- MySQL - SubQuery
- MySQL - Comments
- MySQL - Check Constraints
- MySQL - Storage Engines
- MySQL - Export Table into CSV File
- MySQL - Import CSV File into Database
- MySQL - UUID
- MySQL - Common Table Expressions
- MySQL - On Delete Cascade
- MySQL - Upsert
- MySQL - Horizontal Partitioning
- MySQL - Vertical Partitioning
- MySQL - Cursor
- MySQL - Stored Functions
- MySQL - Signal
- MySQL - Resignal
- MySQL - Character Set
- MySQL - Collation
- MySQL - Wildcards
- MySQL - Alias
- MySQL - ROLLUP
- MySQL - Today Date
- MySQL - Literals
- MySQL - Stored Procedure
- MySQL - Explain
- MySQL - JSON
- MySQL - Standard Deviation
- MySQL - Find Duplicate Records
- MySQL - Delete Duplicate Records
- MySQL - Select Random Records
- MySQL - Show Processlist
- MySQL - Change Column Type
- MySQL - Reset Auto-Increment
- MySQL - Coalesce() Function
MySQL - String Functions
MySQL - String Functions
MySQL string functions are used to manipulate the string values. The following table details the string functions that are available in the MySQL.
Sr.No. | Name & Description |
---|---|
1 |
ASCII()
This function returns numeric value of left-most character. |
2 |
BIN()
This function returns a string representation of the argument. |
3 |
BIT_LENGTH()
This function returns length of argument in bits. |
4 |
CHAR()
This function returns the character for each integer passed. |
5 |
CHAR_LENGTH()
This function returns number of characters in argument. |
6 |
CHARACTER_LENGTH()
This function is a synonym for CHAR_LENGTH(). |
7 |
CONCAT()
This function returns concatenated string. |
8 |
CONCAT_WS()
This function returns concatenate with separator. |
9 |
ELT()
This function returns string at index number. |
10 |
EXPORT_SET()
This function returns a string such that for every bit set in the value bits, you get an on string and for every unset bit, you get an off string. |
11 |
FIELD()
This function returns the index (position) of the first argument in the subsequent arguments. |
12 |
FIND_IN_SET()
This function returns the index position of the first argument within the second argument. |
13 |
FROM_BASE64()
This function decodes a base-64 encoded string as a binary string. |
14 |
INSERT()
Inserts a substring at the specified position up to the specified number of characters. |
15 |
INSTR()
This function returns the index of the first occurrence of substring. |
16 |
LCASE()
Synonym for LOWER(). |
17 |
LEFT()
This function returns the leftmost number of characters as specified. |
18 |
LENGTH()
This function returns the length of a string in bytes. |
19 |
LOAD_FILE()
This function is used to load the specified file. |
20 |
LOCATE()
This function returns the position of the first occurrence of substring. |
21 |
LOWER()
This function returns the argument in lowercase. |
22 |
LPAD()
This function returns the string argument, left-padded with the specified string. |
23 |
LTRIM()
This function is used to removes leading spaces from the given string. |
24 |
MAKE_SET()
This function returns a set of comma-separated strings that have the corresponding bit in bits set. |
25 |
MID()
This function returns a substring starting from the specified position. |
26 |
OCT()
This function returns a string representation of the octal argument. |
27 |
OCTET_LENGTH()
This function is a synonym for LENGTH(). |
28 |
ORD()
If the leftmost character of the argument is a multi-byte character, returns the code for that character. |
29 |
POSITION()
This function is a synonym for LOCATE(). |
30 |
QUOTE()
This function escapes the argument for use in an SQL statement. |
31 |
REPEAT()
This function returns the starting index of the substring matching given regular expression. |
32 |
REPLACE()
This function replaces the matched sub string with the replacement string and returns the result. |
33 |
REVERSE()
This function is used to reverse the characters in a string |
34 |
RIGHT()
This function returns the specified rightmost number of characters. |
35 |
RPAD()
This function is used to add padding to the right side of the string until it reaches the desired length. |
36 |
RTRIM()
This function is used to remove trailing spaces. |
37 |
SOUNDEX()
This function returns a soundex string. |
38 |
SPACE()
This function returns a string of the specified number of spaces. |
39 |
STRCMP()
This function is used to compare two given strings. |
40 |
SUBSTR()
This function returns the substring as specified. |
41 |
SUBSTRING()
This function returns the substring as specified. |
42 |
SUBSTRING_INDEX()
This function returns a substring from a string before the specified number of occurrences of the delimiter. |
43 |
TO_BASE64()
This function encodes a string value to base-64 string. |
44 |
TRIM()
This function is used to removes the leading and trailing spaces of the given string. |
45 |
UCASE()
This function is a synonym for UPPER(). |
46 |
UNHEX()
This function converts each pair of hexadecimal digits to a character. |
47 |
UPPER()
This function is used to convert the characters in the given string to uppercase. |
48 |
WEIGHT_STRING()
This function returns the weight string value of the given argument. |
49 |
MATCH
This operator is used to search for particular string in the specified list of columns. |
50 |
REGEXP
This operator is similar to the REGEXP_LIKE() function it is used to match a particular pattern in the given string. |
51 |
SOUNDS LIKE
This operator is used to compare the soundex values of two strings. |