mirror of
https://github.com/postgres/postgres.git
synced 2026-02-17 09:42:54 -05:00
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
20 lines
977 B
SQL
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 廠商資料;
|