java.sql.SQLException: ORA-00933: SQL command not properly ended -
select substr(mesg,98,15) acc,from tbaadm.rtt cust_or_card_id= "+no+"'" + "and to_date(to_char(system_date_time,'mm-dd-yy'))= "+trandate+"'" + "and to_number(sno)=' "+sno+"'" + "and dcc_id='swt' , cmd='prcr' , bank_id='pmc01' ";
you have quotations @ places or miss them else. , comma should deleted before from
.
"select substr(mesg,98,15) acc tbaadm.rtt cust_or_card_id= '"+no+"' " + "and to_date(to_char(system_date_time,'mm-dd-yy'))= '"+trandate+"' " + "and to_number(sno)= "+sno+" " + "and dcc_id='swt' , cmd='prcr' , bank_id='pmc01' ";
Comments
Post a Comment