Analyze Table Syntax Error

余生颓废 提交于 2019-12-24 23:19:51

问题


The following sql statement raises a syntax error:

analyze table my_table sample_size 0;

This is the raised error:

Syntax error in SQL statement "ANALYZE TABLE MY_TABLE SAMPLE_SIZE[*] 0 "; expected "integer";

The official documentation gives the following:

ANALYZE [TABLE tableName] [SAMPLE_SIZE rowCountInt]

(...) The value 0 means all rows are read.

How to workaround this problem?

H2 1.4.196


回答1:


The error results from a bug in the h2 database parsing code. A fix has been sent.

I don't know in which version it willl be available.



来源:https://stackoverflow.com/questions/44794115/analyze-table-syntax-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!