Mega Code Archive

 
Categories / PostgreSQL / String Functions
 

Get_byte(string, offset)

postgres=# postgres=# -- get_byte(string, offset) postgres=# -- Extract byte from string postgres=# postgres=# select get_byte('Th\\000omas'::bytea, 4);  get_byte ----------       109 (1 row) postgres=# postgres=#