更新时间:2023-12-22 GMT+08:00

GAUSS-00301 -- GAUSS-00310

GAUSS-00301: "EXECUTE DIRECT cannot execute this utility query"

SQLSTATE: 0A000

错误原因:EXECUTE DIRECT ON ( nodename [, ... ] ) query语法中在DN上执行了DDL语句。

解决办法:在EXECUTE DIRECT ON ( nodename [, ... ] ) query语法中不能执行DDL语句,目前只支持SELECT语句。

GAUSS-00302: "EXECUTE DIRECT cannot execute locally this utility query"

SQLSTATE: 0A000

错误原因:特性不支持:EXECUTE DIRECT ON ( nodename [, ... ] ) query语法中在DN上执行了Set变量语句。

解决办法:在EXECUTE DIRECT ON ( nodename [, ... ] ) query语法中不能执行Set变量语句,目前只支持SELECT语句。

GAUSS-00303: "SELECT FOR UPDATE/SHARE is not allowed with DISTINCT clause"

SQLSTATE: 0A000

错误原因:SELECT FOR UPDATE/SHARE不支持DISTINCT子句。

解决办法:修改语句。

GAUSS-00304: "SELECT FOR UPDATE/SHARE is not allowed with GROUP BY clause"

SQLSTATE: 0A000

错误原因:SELECT ... FOR UPDATE/SHARE不支持GROUP BY子句。

解决办法:修改SELECT ... FOR UPDATE/SHARE语句。

GAUSS-00305: "SELECT FOR UPDATE/SHARE is not allowed with HAVING clause"

SQLSTATE: 0A000

错误原因:SELECT ... FOR UPDATE/SHARE不支持HAVING子句。

解决办法:修改SELECT ... FOR UPDATE/SHARE语句。

GAUSS-00306: "SELECT FOR UPDATE/SHARE is not allowed with aggregate functions"

SQLSTATE: 0A000

错误原因:SELECT ... FOR UPDATE/SHARE不支持聚合函数。

解决办法:修改SELECT ... FOR UPDATE/SHARE语句。

GAUSS-00307: "SELECT FOR UPDATE/SHARE is not allowed with window functions"

SQLSTATE: 0A000

错误原因:SELECT ... FOR UPDATE/SHARE不支持窗口函数。

解决办法:修改SELECT ... FOR UPDATE/SHARE语句。

GAUSS-00308: "SELECT FOR UPDATE/SHARE is not allowed with set-returning functions in the target list"

SQLSTATE: 0A000

错误原因:SELECT ... FOR UPDATE/SHARE语法的目标列中不支持定义了返回值的函数。

解决办法:修改SELECT ... FOR UPDATE/SHARE语句。

GAUSS-00309: "SELECT FOR UPDATE/SHARE must specify unqualified relation names"

SQLSTATE: 42601

错误原因:SELECT ... FOR UPDATE/SHARE...OF table_name语法中指定的表名存在数据库/模式的引用。

解决办法:修改SELECT ... FOR UPDATE/SHARE...OF table_name语法中指定的表名不能包含database.table或schema.table等引用,只能是一个确定的表名。

GAUSS-00310: "SELECT FOR UPDATE/SHARE cannot be used with column table '%s'"

SQLSTATE: 0A000

错误原因:SELECT ... FOR UPDATE/SHARE...OF table_name语法中指定的表为列存表。

解决办法:SELECT ... FOR UPDATE/SHARE...OF table_name语法中指定的表名不能使用列存表,请修改语法结构。