summaryrefslogtreecommitdiff
path: root/regress/mysql/init.sql
blob: 8ed3f0bda6fc5fd4d8aa67e5621f3e0cec7bbefd (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
34
35
36
37
38
39
40
41
42
43
44
create table ml (
	fml_ml        char(64),
	fml_domain    char(64),
	fml_address   char(64),
	fml_member    int,
	fml_recipient int
);

insert into ml
values ('elena', 'fml.org', 'fukachan@sapporo.iij.ad.jp',	1, 1);

insert into ml
values ('elena', 'fml.org', 'fukachan@fml.org', 		1, 1);


select * from ml ;


select fml_address from ml
	where fml_ml = 'elena'
		and
		fml_domain = 'fml.org'
		and
	fml_recipient = 1;


update ml set fml_recipient = 0
	where fml_ml = 'elena'
		and
		fml_domain = 'fml.org'
		and
	fml_address  = 'fukachan@fml.org';


select * from ml ;


select fml_address from ml
	where fml_ml = 'elena'
		and
		fml_domain = 'fml.org'
		and
	fml_recipient = 1;