substring in postgres code example Example: postgresql substring SELECT substring('w3resource' from 4 for 5);