Analyze Table Syntax Error

2019-08-21 07:47发布

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条回答
手持菜刀,她持情操
2楼-- · 2019-08-21 08:52

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.

查看更多
登录 后发表回答