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
)
3条答案
按热度按时间scyqe7ek1#
这是什么语法?
dpiehjr42#
mysql merge表修改子表
zyfwsgd63#
同样的问题,不知道现在哪个版本解决了这个问题,我看了下SQLStatement的parseStatementList方法里貌似还不支持alert table 中使用union(1.0.18版)