我有一个MySql数据库。 我的主表是一系列5本书的所有句子,书的索引,书的章节,章节的句子。MySql - 获取所有发生的内容
示例 - 对于哈利波特第五册第一章第三句,我会有这样的一排。
BookID ChapterID SentenceID Text
4 1 3 Deprived of their usual car-washing and lawn-mowing pursuits, the inhabitants of Privet Drive had retreated into the shade of their cool houses, windows thrown wide in the hope of tempting in a nonexistent breeze.
我需要检索所有发生的字母或单词。 因此,如果我搜索'e',我会得到同一行17次。 'e'出现在这一行17次。
我简化了场景,我有更多的信息来检索每个字母。
到目前为止,我一直无法得到一些有用的东西。
谢谢
分享你的sql。 –