ComicList 検索の DB化
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
]
開始行:
[[html]]
* 概要 [#k91a50eb]
作者・作品・ファイルをデータベース化しそれらを使用して検...
検索は部分検索を可能とする。
* ディレクトリ構成 [#k91a50eb]
あ - あ [Ark Performance] - [Ark Performance] 機動戦士ガ...
- [Ark Pe...
- [Ark Pe...
- [Ark Pe...
- [Ark Pe...
- [Ark Performance] 機動戦士ガ...
* テーブル [#k91a50eb]
database : CSB
CSG
CSA
Table : AuthList
ProdList
FileList
table AuthList
| AutherId | Kana | Auther |
| 1 | あ | [Ark Performance] |
| 2 | あ | [Gユウスケ×三雲岳斗×阿倍野ちゃこ ] |
table ProdList
| ProductId | AutherId | Product | ProdPath |
| 1 | 1 | [Ark Performance] 機動戦士ガンダ...
| 2 | 1 | [Ark Performance] 機動戦士ガンダ...
table FileList
| FileId | ProductId | FileName | FileSize | FilePath |
| 1 | 1 | [Ark Performance] 機動戦士ガンダム...
| 2 | 1 | [Ark Performance] 機動戦士ガンダム...
| 3 | 1 | [Ark Performance] 機動戦士ガンダム...
| 4 | 1 | [Ark Performance] 機動戦士ガンダム...
* 検索[#k91a50eb]
** 操作画面[#k91a50eb]
検索
作者[ ]
作品[ ]
Prod 〇 File ● 実行
** 結果[#k91a50eb]
検索
作者[Ark ]
作品[ ]
Prod ● File 〇 実行
あ [Ark Performance] 機動戦士ガンダム -ギレン暗殺計画- ...
あ [Ark Performance] 機動戦士ガンダム MSV-R ジョニー・ラ...
...
* 動作仕様 [#k91a50eb]
** Auther に入力がある場合 [#p67816ab]
Auther に入力が存在するとき Product か File のどちらかを...
*** Product 選択 [#da38b632]
→AuthListを検索し引っかかったら、AutherId を確定し~
AuthList から その AutherId に該当するものの Kana Auth...
ProdList から その AutherId に該当するものの Product P...
を取得し出力する~
-- AuthList の終わりまで検索する。
-- ProdList の終わりまで検索する。
use CSB;
select * from AuthList where Auther like '%ちゃこ%';
| 2 | あ | [Gユウスケ×三雲岳斗×阿倍野ちゃこ ] |
SELECT * FROM AuthList,ProdList WHERE AuthList.AutherId=...
*** File 選択 [#rd2ccea2]
→AuthListを検索し引っかかったら、AutherId を確定し~
AuthList から その AutherId に該当するものの Kana Auth...
ProdList から その AutherId に該当するものの ProductId...
FileList から その ProductId に該当するものの FileName...
を取得し出力する~
-- AuthList の終わりまで検索する。
-- ProdList の終わりまで検索する。
-- FileList の終わりまで検索する。
** Product に入力がある場合 [#q19a39f1]
Product に入力が存在するとき Product か File のどちらかを...
*** Product 選択 [#m17a5792]
→ProdListを検索し引っかかったら、ProductId を確定し~
ProdList から その ProductId に該当するものの AutherId...
AuthList から その AutherId に該当するものの Kana Auth...
を取得し出力する~
-- ProdList の終わりまで検索する。
-- AuthList の終わりまで検索する。
*** File 選択 [#v423ce1f]
→ProdListを検索し引っかかったら、ProductId を確定し~
ProdList から その ProductId に該当するものの AutherId~
AuthList から その AutherId に該当するものの Kana Auth...
FileList から その ProductId に該当するものの FileName...
を取得し出力する~
-- ProdList の終わりまで検索する。
-- AuthList の終わりまで検索する。
-- FileList の終わりまで検索する。
* テーブル更新[#k91a50eb]
* 操作画面[#k91a50eb]
* 動作仕様[#k91a50eb]
database : CSB
Table : AuthList
ProdList
FileList
において、comicB tree の下を検索する。
** Table 全消し& 新規作成[#k91a50eb]
drop database if exists CSB;
create database if not exists CSB;
create table CSB.AuthList(
AutherId data_type AUTO_INCREMENT,
Kana varchar(10),
Auther varchar(256));
create table CSB.ProdList(
ProductId data_type AUTO_INCREMENT,
AutherId int,
Product varchar(256),
ProdPath varchar(256));
create table CSB.FileList(
FileId data_type AUTO_INCREMENT,
ProductId int,
FileName varchar(256),
FileSize int,
FilePath varchar(256));
** ディレクトリを検索しテーブルに登録[#k91a50eb]
基本的には mkhtml を作る手順でやる
2段目がAuther項目。
- AutherId は自動発番。
- 先頭が AuthList.Kana。
- B/G は [] が AuthList.Auther。
- insert into AuthList(Kana, Auther) values('あ', 'Ark P...
- select AutherId from AuthList where Auther = 'Ark Perf...
で、AutherId を取っておく
3段目がProduct項目。
- ProductId は自動発番。
- AutherId は上で取っておいた AutherId。
- [] をとってが ProdList.Product。
- insert into ProdList(AutherId, Product, ProdPath) valu...
- select ProductId from ProdList where Product = '機動戦...
で、ProductId を取っておく
4段目がFile項目。
- FileId は自動発番。
- ProductId は上で取っておいた ProductId。
- [] をとってが FileList.FileName。
- FileSize
- insert into FileList(ProductId, FileName, FileSize, Pr...
これを全ディレクトリで回す。
** 結果[#k91a50eb]
終了行:
[[html]]
* 概要 [#k91a50eb]
作者・作品・ファイルをデータベース化しそれらを使用して検...
検索は部分検索を可能とする。
* ディレクトリ構成 [#k91a50eb]
あ - あ [Ark Performance] - [Ark Performance] 機動戦士ガ...
- [Ark Pe...
- [Ark Pe...
- [Ark Pe...
- [Ark Pe...
- [Ark Performance] 機動戦士ガ...
* テーブル [#k91a50eb]
database : CSB
CSG
CSA
Table : AuthList
ProdList
FileList
table AuthList
| AutherId | Kana | Auther |
| 1 | あ | [Ark Performance] |
| 2 | あ | [Gユウスケ×三雲岳斗×阿倍野ちゃこ ] |
table ProdList
| ProductId | AutherId | Product | ProdPath |
| 1 | 1 | [Ark Performance] 機動戦士ガンダ...
| 2 | 1 | [Ark Performance] 機動戦士ガンダ...
table FileList
| FileId | ProductId | FileName | FileSize | FilePath |
| 1 | 1 | [Ark Performance] 機動戦士ガンダム...
| 2 | 1 | [Ark Performance] 機動戦士ガンダム...
| 3 | 1 | [Ark Performance] 機動戦士ガンダム...
| 4 | 1 | [Ark Performance] 機動戦士ガンダム...
* 検索[#k91a50eb]
** 操作画面[#k91a50eb]
検索
作者[ ]
作品[ ]
Prod 〇 File ● 実行
** 結果[#k91a50eb]
検索
作者[Ark ]
作品[ ]
Prod ● File 〇 実行
あ [Ark Performance] 機動戦士ガンダム -ギレン暗殺計画- ...
あ [Ark Performance] 機動戦士ガンダム MSV-R ジョニー・ラ...
...
* 動作仕様 [#k91a50eb]
** Auther に入力がある場合 [#p67816ab]
Auther に入力が存在するとき Product か File のどちらかを...
*** Product 選択 [#da38b632]
→AuthListを検索し引っかかったら、AutherId を確定し~
AuthList から その AutherId に該当するものの Kana Auth...
ProdList から その AutherId に該当するものの Product P...
を取得し出力する~
-- AuthList の終わりまで検索する。
-- ProdList の終わりまで検索する。
use CSB;
select * from AuthList where Auther like '%ちゃこ%';
| 2 | あ | [Gユウスケ×三雲岳斗×阿倍野ちゃこ ] |
SELECT * FROM AuthList,ProdList WHERE AuthList.AutherId=...
*** File 選択 [#rd2ccea2]
→AuthListを検索し引っかかったら、AutherId を確定し~
AuthList から その AutherId に該当するものの Kana Auth...
ProdList から その AutherId に該当するものの ProductId...
FileList から その ProductId に該当するものの FileName...
を取得し出力する~
-- AuthList の終わりまで検索する。
-- ProdList の終わりまで検索する。
-- FileList の終わりまで検索する。
** Product に入力がある場合 [#q19a39f1]
Product に入力が存在するとき Product か File のどちらかを...
*** Product 選択 [#m17a5792]
→ProdListを検索し引っかかったら、ProductId を確定し~
ProdList から その ProductId に該当するものの AutherId...
AuthList から その AutherId に該当するものの Kana Auth...
を取得し出力する~
-- ProdList の終わりまで検索する。
-- AuthList の終わりまで検索する。
*** File 選択 [#v423ce1f]
→ProdListを検索し引っかかったら、ProductId を確定し~
ProdList から その ProductId に該当するものの AutherId~
AuthList から その AutherId に該当するものの Kana Auth...
FileList から その ProductId に該当するものの FileName...
を取得し出力する~
-- ProdList の終わりまで検索する。
-- AuthList の終わりまで検索する。
-- FileList の終わりまで検索する。
* テーブル更新[#k91a50eb]
* 操作画面[#k91a50eb]
* 動作仕様[#k91a50eb]
database : CSB
Table : AuthList
ProdList
FileList
において、comicB tree の下を検索する。
** Table 全消し& 新規作成[#k91a50eb]
drop database if exists CSB;
create database if not exists CSB;
create table CSB.AuthList(
AutherId data_type AUTO_INCREMENT,
Kana varchar(10),
Auther varchar(256));
create table CSB.ProdList(
ProductId data_type AUTO_INCREMENT,
AutherId int,
Product varchar(256),
ProdPath varchar(256));
create table CSB.FileList(
FileId data_type AUTO_INCREMENT,
ProductId int,
FileName varchar(256),
FileSize int,
FilePath varchar(256));
** ディレクトリを検索しテーブルに登録[#k91a50eb]
基本的には mkhtml を作る手順でやる
2段目がAuther項目。
- AutherId は自動発番。
- 先頭が AuthList.Kana。
- B/G は [] が AuthList.Auther。
- insert into AuthList(Kana, Auther) values('あ', 'Ark P...
- select AutherId from AuthList where Auther = 'Ark Perf...
で、AutherId を取っておく
3段目がProduct項目。
- ProductId は自動発番。
- AutherId は上で取っておいた AutherId。
- [] をとってが ProdList.Product。
- insert into ProdList(AutherId, Product, ProdPath) valu...
- select ProductId from ProdList where Product = '機動戦...
で、ProductId を取っておく
4段目がFile項目。
- FileId は自動発番。
- ProductId は上で取っておいた ProductId。
- [] をとってが FileList.FileName。
- FileSize
- insert into FileList(ProductId, FileName, FileSize, Pr...
これを全ディレクトリで回す。
** 結果[#k91a50eb]
ページ名: