PostgreSQL Substring - Extracting a substring from a String

PHOTO EMBED

Tue Feb 02 2021 17:40:13 GMT+0000 (Coordinated Universal Time)

Saved by @mvieira

SELECT
	SUBSTRING ('PostgreSQL', 1, 8); -- PostgreS
SELECT
	SUBSTRING ('PostgreSQL', 8); -- SQL
Code language: SQL (Structured Query Language) (sql)
content_copyCOPY

https://www.postgresqltutorial.com/postgresql-substring/