postgresql/src/test/mb/sql/big5.sql
Bruce Momjian a7ad43cd18 Included patches make some enhancements to the multi-byte support.
o allow to use Big5 (a Chinese encoding used in Taiwan) as a client
  encoding. In this case the server side encoding should be EUC_TW

o add EUC_TW and Big5 test cases to the regression and the mb test
  (contributed by Jonah Kuo)

o fix mistake in include/mb/pg_wchar.h. An encoding id for EUC_TW was
  not correct (was 3 and now is 4)

o update documents (doc/README.mb and README.mb.jp)

o update psql helpfile (bin/psql/psqlHelp.h)

--
Tatsuo Ishii
t-ishii@sra.co.jp
1999-02-02 18:51:40 +00:00

20 lines
977 B
SQL

drop table ;
create table ( text, varchar, varchar(16));
create index index1 on using btree ();
create index index2 on using hash ();
insert into values ('電腦業', '達達科技', '北A01仁');
insert into values ('製造業', '財源有限公司', '中B10中');
insert into values ('餐飲業', '美味股份有限公司', '高Z01九');
vacuum ;
select * from ;
select * from where = '高Z01九';
select * from where ~* '高z01九';
select * from where like '_Z01_';
select * from where like '_Z%';
select * from where ~ '達達科[寄記技]';
select * from where ~* '達達科[寄記技]';
select *, character_length() from ;
select *, octet_length() from ;
select *, position('有限' in ) from ;
select *, substring( from 3 for 6 ) from ;