summaryrefslogtreecommitdiff
path: root/storage/mroonga/mysql-test/mroonga/storage/r/replace_varchar.result
blob: 090ea9b84d67c4d8ccd0b0e90fa17bee781a4ad7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
drop table if exists diaries;
set names utf8;
create table diaries (
id int primary key,
content varchar(256),
fulltext index (content)
) default charset utf8;
show create table diaries;
Table	Create Table
diaries	CREATE TABLE `diaries` (
  `id` int(11) NOT NULL,
  `content` varchar(256) DEFAULT NULL,
  PRIMARY KEY (`id`),
  FULLTEXT KEY `content` (`content`)
) ENGINE=Mroonga DEFAULT CHARSET=utf8
insert into diaries values(1, "今日からはじめました。");
insert into diaries values(2, "明日の富士山の天気について");
insert into diaries values(3, "今日も天気がよくてきれいに見える。");
select * from diaries;
id	content
1	今日からはじめました。
2	明日の富士山の天気について
3	今日も天気がよくてきれいに見える。
select * from diaries where match(content) against("天気");
id	content
2	明日の富士山の天気について
3	今日も天気がよくてきれいに見える。
replace into diaries values(2, "明日の天気は雨みたい。");
select * from diaries where match(content) against("天気");
id	content
2	明日の天気は雨みたい。
3	今日も天気がよくてきれいに見える。
drop table diaries;