Essential MySQL Functions for String, Numeric, Date, and Conditional Operations
MySQL functions are predefined code blocks that perform specific operations and return a result. They are categorized into four primary types: string functions, numeric functions, date functions, and conditional (flow control) functions.
String Functions
Commonly used string manipulation functions include:
Function
Description
concat(s1, ...
Posted on Mon, 14 Sep 2026 16:47:21 +0000 by widget
C Language String Functions: Implementation and Usage Guide
strlen Function
Key Characteristics
Strings terminate with '\0', and the function counts characters before this termination marker (excluding '\0')
The input string must end with '\0'
Returns size_t type, which is unsigned (common source of errors)
Requires string.h header inclusion
Basic Usage Example
#include <stdio.h>
#include <st ...
Posted on Fri, 14 Aug 2026 16:33:59 +0000 by Rangana
String Extraction Techniques in MySQL Using Left, Right, Substring, and Substring_Index
Extracting Characters from the Left Side
Use left(source_text, char_count) to obtain a specified number of charcaters from the start of a string.
SELECT LEFT('datastream_process', 9);
-- Result: datastrea
Extracting Characters from the Right Side
Use right(source_text, char_count) to retrieve a defined number of characters from the end of a st ...
Posted on Wed, 12 Aug 2026 16:11:23 +0000 by SensualSandwich