In a database, character data can be manipulated using various functions and they can perform various tasks such as data cleansing, data transformation, and data validation. Some of the most commonly used functions are listed below:
SUBSTRING: The SUBSTRING function is used to extract a substring from a string. It takes three arguments: the source string, the starting position, and the length of the substring.
LENGTH: The LENGTH function is used to get the length of a string. It returns the number of characters in the string.
CONCAT: The CONCAT function is used to concatenate two or more strings together. It takes two or more arguments and returns a single string.
UPPER and LOWER: The UPPER function is used to convert all characters in a string to uppercase. The LOWER function is used to convert all characters in a string to lowercase.
REPLACE: The REPLACE function is used to replace a substring in a string with another substring. It takes three arguments: the source string, the substring to be replaced, and the substring to replace it with.
TRIM: The TRIM function is used to remove leading or trailing spaces from a string. It takes one or two arguments: the source string and the character(s) to be trimmed.
INSTR: The INSTR function is used to find the position of a substring in a string. It takes two or three arguments: the source string, the substring to be searched, and the starting position (optional).
INITCAP: The INITCAP() function capitalizes the first letter of each word in a string.
Markdown for AI
A clean, structured version of this page for AI assistants and LLMs.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
In a database, character data can be manipulated using various functions and they can perform various tasks such as data cleansing, data transformation, and data validation. Some of the most commonly used functions are listed below: