我想获得找到的列“文本”的前100个字符。
SELECT * FROM article WHERE MATCH (title,text) AGAINST ("*das*" IN BOOLEAN MODE)
有没有办法在1命令中执行此操作?
答案 0 :(得分:0)
感谢njzk2和spencer7593以及Shaharyar的帮助,我发现了这个解决方案:
SELECT id,title,SUBSTR(text,1,100) FROM article WHERE MATCH (title,text) AGAINST ("*das*" IN BOOLEAN MODE)