hello everyone,
Although i think my code is correct but then also it si showing error,So please tell me where i am wrong.
here is my code
i am getting strOrgId as 1',2',3'
String strOrgId=(String)session.getAttribute("strOrgId");
String strQry1="SELECT (TO_CHAR(SYSDATE,'yddd')||MAX(SUBSTR(DE095,5)))+1 FROM APP_MAST_CBOUT WHERE org_id in (?)";
PreparedStatement pst1=null;
pst1=dbcon.getConnection().prepareStatement(strQry1);
pst1.setString(1,strOrgId);
obj.runQuery(dbcon.getConnection(),pst1);
then also showing me this error
java.sql.SQLException: ORA-01722: invalid number
Regards
Karthik Swamy