gpt4 book ai didi

MySQL 在 LONGTEXT 列中查找一行文本

转载 作者:行者123 更新时间:2023-11-29 14:16:45 24 4
gpt4 key购买 nike

如果您知道文本行以什么开头,如何从 LONGTEXT 列返回段落行?

SELECT 
SUBSTRING('\nA line of text starts here', `paragraphs`)
FROM books

最佳答案

通过使用“喜欢”。 % 表示后面可以包含更多字符。

SELECT paragraphs FROM books WHERE paragraphs LIKE '\nA line of text starts here%'

关于MySQL 在 LONGTEXT 列中查找一行文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12527578/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com