Исходный код СУБД RuDB — свободной СУБД с открытым исходным кодом на базе PostgreSQL
rudb
2 days ago bd039d1e92813358c5c5a1e346b49074baf513f2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
drop table Ó‹Ëã™CÓÃÕZ;
create table Ó‹Ëã™CÓÃÕZ (ÓÃÕZ text, ·Ö³©`¥É varchar, ‚俼1A¤À¤è char(16));
create index Ó‹Ëã™CÓÃÕZindex1 on Ó‹Ëã™CÓÃÕZ using btree (ÓÃÕZ);
create index Ó‹Ëã™CÓÃÕZindex2 on Ó‹Ëã™CÓÃÕZ using hash (·Ö³©`¥É);
insert into Ó‹Ëã™CÓÃÕZ values('¥³¥ó¥Ô¥å©`¥¿¥Ç¥£¥¹¥×¥ì¥¤','™CA01ÉÏ');
insert into Ó‹Ëã™CÓÃÕZ values('¥³¥ó¥Ô¥å©`¥¿¥°¥é¥Õ¥£¥Ã¥¯¥¹','·ÖB10ÖÐ');
insert into Ó‹Ëã™CÓÃÕZ values('¥³¥ó¥Ô¥å©`¥¿¥×¥í¥°¥é¥Þ©`','ÈËZ01ÏÂ');
vacuum Ó‹Ëã™CÓÃÕZ;
select * from Ó‹Ëã™CÓÃÕZ;
select * from Ó‹Ëã™CÓÃÕZ where ·Ö³©`¥É = 'ÈËZ01ÏÂ';
select * from Ó‹Ëã™CÓÃÕZ where ·Ö³©`¥É ~* 'ÈËz01ÏÂ';
select * from Ó‹Ëã™CÓÃÕZ where ·Ö³©`¥É like '_Z01_';
select * from Ó‹Ëã™CÓÃÕZ where ·Ö³©`¥É like '_Z%';
select * from Ó‹Ëã™CÓÃÕZ where ÓÃÕZ ~ '¥³¥ó¥Ô¥å©`¥¿[¥Ç¥°]';
select * from Ó‹Ëã™CÓÃÕZ where ÓÃÕZ ~* '¥³¥ó¥Ô¥å©`¥¿[¥Ç¥°]';
select *,character_length(ÓÃÕZ) from Ó‹Ëã™CÓÃÕZ;
select *,octet_length(ÓÃÕZ) from Ó‹Ëã™CÓÃÕZ;
select *,position('¥Ç' in ÓÃÕZ) from Ó‹Ëã™CÓÃÕZ;
select *,substring(ÓÃÕZ from 10 for 4) from Ó‹Ëã™CÓÃÕZ;