QUERY: CREATE TABLE CHAR2_TBL(f1 char2);
QUERY: INSERT INTO CHAR2_TBL (f1) VALUES ('AB');
QUERY: INSERT INTO CHAR2_TBL (f1) VALUES ('ab');
QUERY: INSERT INTO CHAR2_TBL (f1) VALUES ('ZY');
QUERY: INSERT INTO CHAR2_TBL (f1) VALUES ('34');
QUERY: INSERT INTO CHAR2_TBL (f1) VALUES ('d');
QUERY: INSERT INTO CHAR2_TBL (f1) VALUES ('');
QUERY: INSERT INTO CHAR2_TBL (f1) VALUES ('12345');
QUERY: SELECT '' AS seven, CHAR2_TBL.*;
seven|f1
-----+--
     |AB
     |ab
     |ZY
     |34
     |d 
     |  
     |12
(7 rows)

QUERY: SELECT '' AS six, c.f1 FROM CHAR2_TBL c WHERE c.f1 <> 'AB';
six|f1
---+--
   |ab
   |ZY
   |34
   |d 
   |  
   |12
(6 rows)

QUERY: SELECT '' AS one, c.f1 FROM CHAR2_TBL c WHERE c.f1 = 'AB';
one|f1
---+--
   |AB
(1 row)

QUERY: SELECT '' AS three, c.f1 FROM CHAR2_TBL c WHERE c.f1 < 'AB';
three|f1
-----+--
     |34
     |  
     |12
(3 rows)

QUERY: SELECT '' AS four, c.f1 FROM CHAR2_TBL c WHERE c.f1 <= 'AB';
four|f1
----+--
    |AB
    |34
    |  
    |12
(4 rows)

QUERY: SELECT '' AS three, c.f1 FROM CHAR2_TBL c WHERE c.f1 > 'AB';
three|f1
-----+--
     |ab
     |ZY
     |d 
(3 rows)

QUERY: SELECT '' AS four, c.f1 FROM CHAR2_TBL c WHERE c.f1 >= 'AB';
four|f1
----+--
    |AB
    |ab
    |ZY
    |d 
(4 rows)

QUERY: SELECT '' AS seven, c.f1 FROM CHAR2_TBL c WHERE c.f1 ~ '.*';
seven|f1
-----+--
     |AB
     |ab
     |ZY
     |34
     |d 
     |  
     |12
(7 rows)

QUERY: SELECT '' AS zero, c.f1 FROM CHAR2_TBL c WHERE c.f1 !~ '.*';
zero|f1
----+--
(0 rows)

QUERY: SELECT '' AS one, c.f1 FROM CHAR2_TBL c WHERE c.f1 ~ '34';
one|f1
---+--
   |34
(1 row)

QUERY: SELECT '' AS one, c.f1 FROM CHAR2_TBL c WHERE c.f1 ~ '3.*';
one|f1
---+--
   |34
(1 row)

QUERY: DROP TABLE CHAR2_TBL;
