2 create table ¼t°Ó¸ê®Æ (¦æ·~§O text, ¤½¥q©ïÀY varchar, ¦a§} varchar(16));
3 create index ¼t°Ó¸ê®Æindex1 on ¼t°Ó¸ê®Æ using btree (¦æ·~§O);
4 create index ¼t°Ó¸ê®Æindex2 on ¼t°Ó¸ê®Æ using hash (¤½¥q©ïÀY);
5 insert into ¼t°Ó¸ê®Æ values ('¹q¸£·~', '¹F¹F¬ì§Þ', '¥_A01¤¯');
6 insert into ¼t°Ó¸ê®Æ values ('»s³y·~', '°]·½¦³¤½¥q', '¤¤B10¤¤');
7 insert into ¼t°Ó¸ê®Æ values ('À\¶¼·~', '¬ü¨ýªÑ¥÷¦³¤½¥q', '°ªZ01¤E');
9 select * from ¼t°Ó¸ê®Æ;
10 select * from ¼t°Ó¸ê®Æ where ¦a§} = '°ªZ01¤E';
11 select * from ¼t°Ó¸ê®Æ where ¦a§} ~* '°ªz01¤E';
12 select * from ¼t°Ó¸ê®Æ where ¦a§} like '_Z01_';
13 select * from ¼t°Ó¸ê®Æ where ¦a§} like '_Z%';
14 select * from ¼t°Ó¸ê®Æ where ¤½¥q©ïÀY ~ '¹F¹F¬ì[±H°O§Þ]';
15 select * from ¼t°Ó¸ê®Æ where ¤½¥q©ïÀY ~* '¹F¹F¬ì[±H°O§Þ]';
17 select *, character_length(¦æ·~§O) from ¼t°Ó¸ê®Æ;
18 select *, octet_length(¦æ·~§O) from ¼t°Ó¸ê®Æ;
19 select *, position('¦³' in ¤½¥q©ïÀY) from ¼t°Ó¸ê®Æ;
20 select *, substring(¤½¥q©ïÀY from 3 for 6 ) from ¼t°Ó¸ê®Æ;