druid alter table tab_s UNION=(tab_s_201601,tab_s_201602,tab_s_201603) 报错,请问怎么配置可以解决?

mpbci0fu  于 2022-10-21  发布在  Druid
关注(0)|答案(3)|浏览(200)

alter table tab_s UNION=(tab_s_201601,tab_s_201602,tab_s_201603) 报错。请问怎么配置可以解决?

Error updating database. Cause: java.sql.SQLException: sql injection violation, syntax error: syntax error, error in :'tics UNION=( tab_s_201601 ',expect UNION, actual UNION UNION : alter table tab_s UNION=( tab_s_201601 , tab_s_201602 , tab_s_201603 )

SQL: alter table tab_s UNION=( tab_s_201601 , tab_s_201602 , tab_s_201603 )

Cause: java.sql.SQLException: sql injection violation, syntax error: syntax error, error in :'tics UNION=( tab_s_201601 ',expect UNION, actual UNION UNION : alter table tab_s UNION=( tab_s_201601 , tab_s_201602 , tab_s_201603 )

; uncategorized SQLException for SQL []; SQL state [null]; error code [0]; sql injection violation, syntax error: syntax error, error in :'tics UNION=( tab_s_201601 ',expect UNION, actual UNION UNION : alter table tab_s UNION=( tab_s_201601 , tab_s_201602 , tab_s_201603 ); nested exception is java.sql.SQLException: sql injection violation, syntax error: syntax error, error in :'tics UNION=( tab_s_201601 ',expect UNION, actual UNION UNION : alter table tab_s UNION=( tab_s_201601 , tab_s_201602 , tab_s_201603 )

scyqe7ek

scyqe7ek1#

这是什么语法?

dpiehjr4

dpiehjr42#

mysql merge表修改子表

zyfwsgd6

zyfwsgd63#

同样的问题,不知道现在哪个版本解决了这个问题,我看了下SQLStatement的parseStatementList方法里貌似还不支持alert table 中使用union(1.0.18版)

相关问题