自然语言解析

sql自然语言查询,实现场景化查询

比如一个成绩管理系统的查询

场景1:学生成绩查询

查张三的总分:

    select TotalScore from score where name="张三”

    select sum(a.score) as 总成绩 from score a, student b
    where a.sno = b.sno and b.name="张三"


场景2:学生成绩统计

查211班平均分:

   select avg(TotalScore) from score where class="211"


猜你喜欢

转载自blog.csdn.net/weishaolin13x/article/details/80648521