你可以先执行"select 序列名.nextval from dual",把值给id变量.