ComicList 検索の DB化
の編集
http://sek-net.no-ip.info/wikiZ+/index.php?ComicList%20%E6%A4%9C%E7%B4%A2%E3%81%AE%20DB%E5%8C%96
[
トップ
] [
編集
|
差分
|
バックアップ
|
添付
|
リロード
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
]
-- 雛形とするページ --
AlmaLinux
BracketName
ComicList 検索の DB化
DB 複製
F660A
FTPサーバー
FormattingRules
FrontPage
Get Started with Best Local Dating Website For Quick Sex
Get Started with Online Casual Dating Apps No Cost
Guide To Best Casual Encounters Website Usa
Help
InterWiki
InterWikiName
InterWikiSandBox
L2TP/IPSec
Lara 7→8
Lara Apacheで見れるように
Laravel
Laraインストール
Laraインストール2
Laraサンプルを作る
Laraララ帳要点メモ
MenuBar
MySQL
N54l BIOS UPDATE
NIS
PHP
PukiWiki
PukiWiki/1.4
PukiWiki/1.4/Manual
PukiWiki/1.4/Manual/Plugin
PukiWiki/1.4/Manual/Plugin/A-D
PukiWiki/1.4/Manual/Plugin/E-G
PukiWiki/1.4/Manual/Plugin/H-K
PukiWiki/1.4/Manual/Plugin/L-N
PukiWiki/1.4/Manual/Plugin/O-R
PukiWiki/1.4/Manual/Plugin/S-U
PukiWiki/1.4/Manual/Plugin/V-Z
RP4 Centos stream 9
Raspberry Pi 4
Raspberry Pi Zero(W)
RecentDeleted
SEK
SandBox
SoftEther
Strongswan
Tips
UUID
VirtualBox
WEBカメラ
WEBサーバー
WEBページの設置
WikiEngines
WikiName
WikiWikiWeb
YukiWiki
centos7
centos8
centos9 stream
comic
cron
css
date
dd
defgbrtgert
domain
down.sh
firewalld
format
fstab
fstab の話
gid uid
guide
haproxy
history
html
httpd
httpd.service
httpサーバー
ilfa
install から設定まで
ldap
linux(other)
lyon
mami
mami Dnsmasq
mami FTP Server
mami File Server
mami Mail Server
mami MariaDB 10.2
mami NextCloud
mami PHP 7
mami WEB Server
mami phpMyAdmin
mami subversion
mami update計画
mami 基本設定
mami3インストール
mamiインストール
mami旧インストール
multi
mydns
mysql
mysql 入力
network
nmcli
noip
noip_dcu
php
php file (RPZW)
phpMyAdmin
pound
repo
rpm作成
rsync
samba
serio
ssh
standby
virtual host
wikiZ+ の移行
write-protected
yum upgrade
その他
アセンブラ
カメラを動かす (RPZW)
キャッシュの回避
サーバーTips
データベース
ネガの補正
ピアノ教室
ファイルサーバー
マシン
メモ帳
作業状況
傾向
共通関数
内容
写真をRAMに保存 (RPZW)
初めに (RPZW)
初めに (Raspberry Pi Zero W)
初期設定 (RPZW)
基本情報技術者試験
基本設定
定点カメラ
新生lyon
新生mami
毎日の処理
画像を保存 (RPZW)
画像を転送 (RPZW)
画像変換
発表会ポスター
知恵袋
計画 (RPZW)
課題 (RPZW)
[[html]] * 概要 [#k91a50eb] 作者・作品・ファイルをデータベース化しそれらを使用して検索を行う。 検索は部分検索を可能とする。 * ディレクトリ構成 [#k91a50eb] あ - あ [Ark Performance] - [Ark Performance] 機動戦士ガンダム -ギレン暗殺計画- 全04巻 - [Ark Performance] 機動戦士ガンダム -ギレン暗殺計画- 第01巻 - [Ark Performance] 機動戦士ガンダム -ギレン暗殺計画- 第02巻 - [Ark Performance] 機動戦士ガンダム -ギレン暗殺計画- 第03巻 - [Ark Performance] 機動戦士ガンダム -ギレン暗殺計画- 第04巻 - [Ark Performance] 機動戦士ガンダム MSV-R ジョニー・ライデンの帰還 * テーブル [#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] 機動戦士ガンダム -ギレン暗殺計画- 全04巻 | | | 2 | 1 | [Ark Performance] 機動戦士ガンダム MSV-R ジョニー・ライデンの帰還 | | table FileList | FileId | ProductId | FileName | FileSize | FilePath | | 1 | 1 | [Ark Performance] 機動戦士ガンダム -ギレン暗殺計画- 第01巻 | | | | 2 | 1 | [Ark Performance] 機動戦士ガンダム -ギレン暗殺計画- 第02巻 | | | | 3 | 1 | [Ark Performance] 機動戦士ガンダム -ギレン暗殺計画- 第03巻 | | | | 4 | 1 | [Ark Performance] 機動戦士ガンダム -ギレン暗殺計画- 第04巻 | | | * 検索[#k91a50eb] ** 操作画面[#k91a50eb] 検索 作者[ ] 作品[ ] Prod 〇 File ● 実行 ** 結果[#k91a50eb] 検索 作者[Ark ] 作品[ ] Prod ● File 〇 実行 あ [Ark Performance] 機動戦士ガンダム -ギレン暗殺計画- 全04巻 path あ [Ark Performance] 機動戦士ガンダム MSV-R ジョニー・ライデンの帰還 path ... * 動作仕様 [#k91a50eb] ** Auther に入力がある場合 [#p67816ab] Auther に入力が存在するとき Product か File のどちらかを出力する。(ラジオボタン選択) *** Product 選択 [#da38b632] →AuthListを検索し引っかかったら、AutherId を確定し~ AuthList から その AutherId に該当するものの Kana Auther~ ProdList から その AutherId に該当するものの Product ProdPath~ を取得し出力する~ -- AuthList の終わりまで検索する。 -- ProdList の終わりまで検索する。 use CSB; select * from AuthList where Auther like '%ちゃこ%'; | 2 | あ | [Gユウスケ×三雲岳斗×阿倍野ちゃこ ] | SELECT * FROM AuthList,ProdList WHERE AuthList.AutherId=ProdList.AutherId=2; *** File 選択 [#rd2ccea2] →AuthListを検索し引っかかったら、AutherId を確定し~ AuthList から その AutherId に該当するものの Kana Auther~ ProdList から その AutherId に該当するものの ProductId(FileList の検索に使用)~ FileList から その ProductId に該当するものの FileName FileSize FilePath を取得し出力する~ -- AuthList の終わりまで検索する。 -- ProdList の終わりまで検索する。 -- FileList の終わりまで検索する。 ** Product に入力がある場合 [#q19a39f1] Product に入力が存在するとき Product か File のどちらかを出力する。(ラジオボタン選択) *** Product 選択 [#m17a5792] →ProdListを検索し引っかかったら、ProductId を確定し~ ProdList から その ProductId に該当するものの AutherId Product ProdPath~ AuthList から その AutherId に該当するものの Kana Auther~ を取得し出力する~ -- ProdList の終わりまで検索する。 -- AuthList の終わりまで検索する。 *** File 選択 [#v423ce1f] →ProdListを検索し引っかかったら、ProductId を確定し~ ProdList から その ProductId に該当するものの AutherId~ AuthList から その AutherId に該当するものの Kana Auther~ FileList から その ProductId に該当するものの FileName FileSize FilePath~ を取得し出力する~ -- 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 Performance'); - select AutherId from AuthList where Auther = 'Ark Performance'; で、AutherId を取っておく 3段目がProduct項目。 - ProductId は自動発番。 - AutherId は上で取っておいた AutherId。 - [] をとってが ProdList.Product。 - insert into ProdList(AutherId, Product, ProdPath) values($AutherId, '機動戦士ガンダム -ギレン暗殺計画- 全04巻', '$Path'); - select ProductId from ProdList where Product = '機動戦士ガンダム -ギレン暗殺計画- 全04巻'; で、ProductId を取っておく 4段目がFile項目。 - FileId は自動発番。 - ProductId は上で取っておいた ProductId。 - [] をとってが FileList.FileName。 - FileSize - insert into FileList(ProductId, FileName, FileSize, ProdPath) values($ProductId, '機動戦士ガンダム -ギレン暗殺計画- 第01巻', $FileSize, '$Path'); これを全ディレクトリで回す。 ** 結果[#k91a50eb]
タイムスタンプを変更しない
[[html]] * 概要 [#k91a50eb] 作者・作品・ファイルをデータベース化しそれらを使用して検索を行う。 検索は部分検索を可能とする。 * ディレクトリ構成 [#k91a50eb] あ - あ [Ark Performance] - [Ark Performance] 機動戦士ガンダム -ギレン暗殺計画- 全04巻 - [Ark Performance] 機動戦士ガンダム -ギレン暗殺計画- 第01巻 - [Ark Performance] 機動戦士ガンダム -ギレン暗殺計画- 第02巻 - [Ark Performance] 機動戦士ガンダム -ギレン暗殺計画- 第03巻 - [Ark Performance] 機動戦士ガンダム -ギレン暗殺計画- 第04巻 - [Ark Performance] 機動戦士ガンダム MSV-R ジョニー・ライデンの帰還 * テーブル [#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] 機動戦士ガンダム -ギレン暗殺計画- 全04巻 | | | 2 | 1 | [Ark Performance] 機動戦士ガンダム MSV-R ジョニー・ライデンの帰還 | | table FileList | FileId | ProductId | FileName | FileSize | FilePath | | 1 | 1 | [Ark Performance] 機動戦士ガンダム -ギレン暗殺計画- 第01巻 | | | | 2 | 1 | [Ark Performance] 機動戦士ガンダム -ギレン暗殺計画- 第02巻 | | | | 3 | 1 | [Ark Performance] 機動戦士ガンダム -ギレン暗殺計画- 第03巻 | | | | 4 | 1 | [Ark Performance] 機動戦士ガンダム -ギレン暗殺計画- 第04巻 | | | * 検索[#k91a50eb] ** 操作画面[#k91a50eb] 検索 作者[ ] 作品[ ] Prod 〇 File ● 実行 ** 結果[#k91a50eb] 検索 作者[Ark ] 作品[ ] Prod ● File 〇 実行 あ [Ark Performance] 機動戦士ガンダム -ギレン暗殺計画- 全04巻 path あ [Ark Performance] 機動戦士ガンダム MSV-R ジョニー・ライデンの帰還 path ... * 動作仕様 [#k91a50eb] ** Auther に入力がある場合 [#p67816ab] Auther に入力が存在するとき Product か File のどちらかを出力する。(ラジオボタン選択) *** Product 選択 [#da38b632] →AuthListを検索し引っかかったら、AutherId を確定し~ AuthList から その AutherId に該当するものの Kana Auther~ ProdList から その AutherId に該当するものの Product ProdPath~ を取得し出力する~ -- AuthList の終わりまで検索する。 -- ProdList の終わりまで検索する。 use CSB; select * from AuthList where Auther like '%ちゃこ%'; | 2 | あ | [Gユウスケ×三雲岳斗×阿倍野ちゃこ ] | SELECT * FROM AuthList,ProdList WHERE AuthList.AutherId=ProdList.AutherId=2; *** File 選択 [#rd2ccea2] →AuthListを検索し引っかかったら、AutherId を確定し~ AuthList から その AutherId に該当するものの Kana Auther~ ProdList から その AutherId に該当するものの ProductId(FileList の検索に使用)~ FileList から その ProductId に該当するものの FileName FileSize FilePath を取得し出力する~ -- AuthList の終わりまで検索する。 -- ProdList の終わりまで検索する。 -- FileList の終わりまで検索する。 ** Product に入力がある場合 [#q19a39f1] Product に入力が存在するとき Product か File のどちらかを出力する。(ラジオボタン選択) *** Product 選択 [#m17a5792] →ProdListを検索し引っかかったら、ProductId を確定し~ ProdList から その ProductId に該当するものの AutherId Product ProdPath~ AuthList から その AutherId に該当するものの Kana Auther~ を取得し出力する~ -- ProdList の終わりまで検索する。 -- AuthList の終わりまで検索する。 *** File 選択 [#v423ce1f] →ProdListを検索し引っかかったら、ProductId を確定し~ ProdList から その ProductId に該当するものの AutherId~ AuthList から その AutherId に該当するものの Kana Auther~ FileList から その ProductId に該当するものの FileName FileSize FilePath~ を取得し出力する~ -- 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 Performance'); - select AutherId from AuthList where Auther = 'Ark Performance'; で、AutherId を取っておく 3段目がProduct項目。 - ProductId は自動発番。 - AutherId は上で取っておいた AutherId。 - [] をとってが ProdList.Product。 - insert into ProdList(AutherId, Product, ProdPath) values($AutherId, '機動戦士ガンダム -ギレン暗殺計画- 全04巻', '$Path'); - select ProductId from ProdList where Product = '機動戦士ガンダム -ギレン暗殺計画- 全04巻'; で、ProductId を取っておく 4段目がFile項目。 - FileId は自動発番。 - ProductId は上で取っておいた ProductId。 - [] をとってが FileList.FileName。 - FileSize - insert into FileList(ProductId, FileName, FileSize, ProdPath) values($ProductId, '機動戦士ガンダム -ギレン暗殺計画- 第01巻', $FileSize, '$Path'); これを全ディレクトリで回す。 ** 結果[#k91a50eb]
テキスト整形のルールを表示する