Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は自分のデータベースに持っています:
name mime size data Untitled.txt text/plain bigint(20) Mediumblob
そして、検索コマンドで取得した単語をファイルで検索したいと思います。
おそらく、データベースからファイルを抽出し、fopen/fread 関数を使用します。
テキスト形式の新しい列を追加した方がよいでしょう。したがって、レコードを追加するときは、fopen/fread を使用してファイルからデータを取得し、それを TEXT 列に挿入します。次に、このフィールドから検索します。
SELECT * FROM table WHERE textmime LIKE '%searchinput%'
'textmime' は、ファイルのテキスト バージョンが格納される列です。
ただのアイデア