String Manipulation
String Concatenation
A. The Pipe Operator (||)
||)SELECT first_name || ' ' || last_name AS full_name FROM users;B. The CONCAT() Function
CONCAT() FunctionSELECT CONCAT(first_name, ' ', last_name) AS full_name FROM users;C. CONCAT_WS() (With Separator)
CONCAT_WS() (With Separator)-- Joins address parts with a comma and space
SELECT CONCAT_WS(', ', street, city, state, zip) AS shipping_address FROM orders;Essential Transformation Functions
Substrings and Positioning
Pattern Matching: LIKE vs. ILIKE
LIKE vs. ILIKERegular Expressions (~)
~)Summary
Last updated