diff options
| author | fukachan <fukachan> | 2001-03-17 12:51:43 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2001-03-17 12:51:43 +0000 |
| commit | 114ffae74a60c46eb0353febef7865ce1e46a046 (patch) | |
| tree | 403f2bcd735b07061027916ae973c7c2ae418bda | |
| parent | a622ef8d1a0541e05630eef52e218d7fe1bf6ece (diff) | |
| download | fml8-114ffae74a60c46eb0353febef7865ce1e46a046.tar.gz fml8-114ffae74a60c46eb0353febef7865ce1e46a046.tar.bz2 fml8-114ffae74a60c46eb0353febef7865ce1e46a046.zip | |
fix pathname, import another sql examples
| -rw-r--r-- | regress/mysql/HOW_TO_SETUP.txt | 3 | ||||
| -rw-r--r-- | regress/mysql/drop.sql | 1 | ||||
| -rw-r--r-- | regress/mysql/toymodel.sql | 30 |
3 files changed, 32 insertions, 2 deletions
diff --git a/regress/mysql/HOW_TO_SETUP.txt b/regress/mysql/HOW_TO_SETUP.txt index acb1606f..73b29643 100644 --- a/regress/mysql/HOW_TO_SETUP.txt +++ b/regress/mysql/HOW_TO_SETUP.txt @@ -21,8 +21,7 @@ Enter password: INSERT INTO user VALUES ('beth.fml.org','fukachan',Password('uja'),'Y','Y','Y','Y','Y','N','N','N','N','N','N','N','N','N'); -# cat ~/w/cvs/fml/databases/examples/mysql-toymodel/toymodel.sql |\ - sudo mysql -h localhost -p fml +# cat toymodel.sql | mysql -h localhost -p fml ### diff --git a/regress/mysql/drop.sql b/regress/mysql/drop.sql new file mode 100644 index 00000000..f1f44d43 --- /dev/null +++ b/regress/mysql/drop.sql @@ -0,0 +1 @@ +drop table ml ; diff --git a/regress/mysql/toymodel.sql b/regress/mysql/toymodel.sql new file mode 100644 index 00000000..c35bebbd --- /dev/null +++ b/regress/mysql/toymodel.sql @@ -0,0 +1,30 @@ +create table ml ( + ml char(64), + file char(64), + address char(64), + off int, + options char(64) +); + +insert into ml +values ('elena', 'actives', 'fukachan@sapporo.iij.ad.jp', 0, ''); +insert into ml +values ('elena', 'members', 'fukachan@sapporo.iij.ad.jp', 0, ''); + +insert into ml +values ('elena', 'actives', 'fukachan@fml.org', 0, ''); +insert into ml +values ('elena', 'members', 'fukachan@fml.org', 0, ''); + + +select * from ml ; + +select * from ml + where address = 'kenken@nuinui.net' + and + file = 'actives' ; + +select * from ml + where address = 'fukachan@nuinui.net' + and + file = 'actives' ; |
