在 SQL 的句子中查找并 return 一个词

Find and return a word in a sentence in SQL

我的 SQLite 数据库中有一列包含一个长字符串。例如:

This is almost a long sentence in the column I have mentioned!

我想传递一个单词的一些字母并得到整个单词,而不是句子本身!比如我想输入sen得到单词sentence.

我正在寻找一种方法来执行 SQL 查询,是否有任何解决方案?

试试这个:

select substr(substr(f, instr(f, "sen")),             -- starting with 'sen'
              0,
              instr(substr(f, instr(f, "sen")), " ")) -- ending with space
  from t;