• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

column not allowwd here - exception

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi this is my insert statement,


"INSERT INTO CHQ_INSTRUMENT_DETAILS ( "+
"INST_REFERENCE_NO,BEN_ACCT_NO,BEN_NAME, "+
"INSTRUMENT_NO,INSTRUMENT_DATE,INSTRUMENT_AMOUNT, "+
"INSTRUMENT_CURRENCY,DRAWER_ACCT_NO,DRAWER_NAME, "+
"DRAWEE_BANK,OTHER_DRAWEE_BANK,DRAWEE_BRANCH, "+
"ABA_ROUNTING_NO,COLLECTING_COUNTRY,FD_AMOUNT, "+
"REMARKS,LINK_BRANCH_CODE, "+
"LOCATION,CL_REFERENCE_NO,STATUS, "+
"CREATED_BY, MODIFIED_BY,COLLECTING_BANK,BRANCH_REF_NO,MFX_ENTRY_DATE,MFX_REF_NO,R_RETURN_CODE,DRAWEE_BRANCH_STATE,LINK_BRANCH_NAME," +
"INST_LEVEL,FD_INST_REF_NO,ACT_STATUS,TRANSACTION_BASED,AML_BEN_NAME,bank_type,BRANCH_FLAG,CASH_LETTER_FLAG,BRANCH_REF_FORMAT,INST_AMT_INR,INSTRUMENT) "+
"VALUES ( ? ,? ,? ," +
" ? ,to_date(?, dd-mon-yy) ,? ," +
" ? ,? ,? ," +
" ? ,? ,? ," +
" ? ,? ,? ," +
" ? ,? ,? ," +
" ? ,? ,? ," +
" ? ,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";

and this statement is throwing an exeption as below

Exception of Type 'com.sbi.gls.common.exception.SBIException' occured.
The root cause is :
org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [INSERT INTO CHQ_INSTRUMENT_DETAILS ( INST_REFERENCE_NO,BEN_ACCT_NO,BEN_NAME, INSTRUMENT_NO,INSTRUMENT_DATE,INSTRUMENT_AMOUNT, INSTRUMENT_CURRENCY,DRAWER_ACCT_NO,DRAWER_NAME, DRAWEE_BANK,OTHER_DRAWEE_BANK,DRAWEE_BRANCH, ABA_ROUNTING_NO,COLLECTING_COUNTRY,FD_AMOUNT, REMARKS,LINK_BRANCH_CODE, LOCATION,CL_REFERENCE_NO,STATUS, CREATED_BY, MODIFIED_BY,COLLECTING_BANK,BRANCH_REF_NO,MFX_ENTRY_DATE,MFX_REF_NO,R_RETURN_CODE,DRAWEE_BRANCH_STATE,LINK_BRANCH_NAME,INST_LEVEL,FD_INST_REF_NO,ACT_STATUS,TRANSACTION_BASED,AML_BEN_NAME,bank_type,BRANCH_FLAG,CASH_LETTER_FLAG,BRANCH_REF_FORMAT,INST_AMT_INR,INSTRUMENT) VALUES ( ? ,? ,? , ? ,to_date(?, dd-mon-yy) ,? , ? ,? ,? , ? ,? ,? , ? ,? ,? , ? ,? ,? , ? ,? ,? , ? ,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)]; nested exception is java.sql.SQLException: ORA-00984: column not allowed here

java.sql.SQLException: ORA-00984: column not allowed here


Please help me resolve this

 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
dd-mon-yy should be 'dd-mon-yy'
 
Good night. Drive safely. Here's a tiny ad for the road:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic