I would love to know why I have this mistake: java.lang.Exception: Parameter index out of range (2 > number of parameters, which is 1).
Yes, I use PreparedStatement
SQL="SELECT pcsv("+servidor_virtual_nuestro+","+nivel_cuenta_receptora+","+codigo_sku[id_componente]+","+t_precio[tipo_precio]+",0) as p_unitario FROM servidores_virtuales t1"+
"WHERE t1.id_servidor_virtual= ? ";
PreparedStatement pstm100 = this.conexion.prepareStatement(SQL);
pstm100.setInt(1, servidor_virtual_nuestro);
ResultSet rs66 = pstm100.executeQuery();
pcsv is a procedure which I have created, so I don't know why I have this mistake, could you help me?. Thanks so much
pcsv?