String sql = "select top ? * from customer";这是预编译的语句
然后
ps.setInt(1,2);
这里就报错了
可以保证其他地方没错,换了条语句是可以的