mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-12 04:26:59 +02:00
cb7cbc16fa
I have implemented a framework of encoding translation between the backend and the frontend. Also I have added a new variable setting command: SET CLIENT_ENCODING TO 'encoding'; Other features include: Latin1 support more 8 bit cleaness See doc/README.mb for more details. Note that the pacthes are against May 30 snapshot. Tatsuo Ishii
20 lines
936 B
SQL
20 lines
936 B
SQL
drop table 计算机术语;
|
|
create table 计算机术语(术语 text, 分类号 varchar, 备注1A char(16));
|
|
create index 计算机术语index1 on 计算机术语 using btree(术语);
|
|
create index 计算机术语index2 on 计算机术语 using btree(分类号);
|
|
insert into 计算机术语 values('电脑显示屏','机A01上');
|
|
insert into 计算机术语 values('电脑图形','分B01中');
|
|
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 4) from 计算机术语;
|