For example,
create table tblvarchar
(
lngvarchar character varying(500)
)
And Sample Row is
insert into tblvarchar (lngvarchar) values ('110010000001111101010011110000001101011000001')
- How to find out the
character
(this case (0
or1
)) inlngvarchar
field using the position ofcharacter
? - for example, the
character
in 15th position oflngvarchar
is1
On PostgreSQL 9.2.4
You can do this (start position 15, length 1 example):
SQL FIDDLE