MySQL Functions with query
1. String Functions a) CONCAT() Joins two or more strings together.
|
1 2 |
SELECT CONCAT(first_name, ' ', last_name) AS full_name FROM employees; |
b) LENGTH() Returns the length of a string in bytes.
|
1 2 |
SELECT LENGTH(first_name) AS name_length FROM employees; |
c) UPPER() / LOWER() Converts string to uppercase or...
