Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要使用 jdbc 模板执行下面的 alter 命令(不确定是否可以在 jdbctemplate 中使用 alter 语句)。
ALTER SEQUENCE MY_SEQ INCREMENT BY <>;
该数字将动态传递。
请帮忙。
谢谢
这是我的功能。
int incremento= 10;
String sql="ALTER SEQUENCE esquema.scuencia INCREMENT BY ";
String update=sql+incrmento;
jdbcTemplate.update(update);
用户需要具有特殊权限才能修改序列。