我试图在SAP中执行SQL中的文本挖掘函数TM_GET_RELEVANT_DOCUMENTS。但是得到了一个错误:
SAP DBTech JDBC: 257: sql语法错误:“崩溃”附近的不正确语法:第3行Col6(见pos 164)
SQL语句应该是正确的,因为我使用了SAP官方文档中的一个示例。造成这个问题的原因是什么?
sql语句是:
select t.rank, t.total_term_count, t.score
from tm_get_relevant_documents (
term 'crash'
language 'english'
search distinct "ta_token"
from "xxx"."xxx"
return
top 20
rank, term_count
) as t where t.score > 0.25 and t.total_term_count > 2;发布于 2016-10-26 04:50:53
原因可能是因为您使用的是SPS09或其他更早的东西。
如果您有任何小于SPS10的内容,则无法访问SQL挖掘功能。它直到SPS10才被引入。在SPS09中,您可以通过SAP访问文本挖掘功能。
https://stackoverflow.com/questions/40249208
复制相似问题