SUBSTR
SUBSTRB
LENGTH
Extracts a substring by byte position.
SUBSTRB(str, pos [, len])
Enter values below to update the example in real time.
product_desc
short_desc
products
SELECT SUBSTRB(product_desc, 1, 30) AS short_desc FROM products;