ORA-24816: provides extended non-LONG Binding data after the actual LONG or LOB Column

Source: Internet
Author: User
When an announcement is added, an error is reported when the content is entered: ORA-24816: provides extended non-LONG Binding data after the actual LONG or LOB Column

When an announcement is added, an error is reported when the content is entered: ORA-24816: provides extended non-LONG Binding data after the actual LONG or LOB Column

When an announcement is added, an error is reported when the content is entered: ORA-24816: provides extended non-LONG Binding data after the actual LONG or LOB Column

Solution: an extended non-LONG Binding data error is provided after the actual LONG or LOB column ,, this error occurs because fields with the LONG field type in the database are placed before other fields during parameter binding. You only need to bind the fields with the LONG type to the final setting.

Insert into ZGECM. ZHBGPT_GGXX (BT, BZ, FBRBH, FBRXM, FBSJ, FBZT, FJDZ, FJMC, NR, SFZD, SXRQ, YDFW, YDFWQD, YXRQ, zqsj, ID) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Oh, is the content field to be put behind,

Well, modify the program and modify the database.

1. modify the program:

@ Entity
@ Table (name = "ZHBGPT_GGXX", schema = "ZGECM ")
Public class GgxxEntity implements Serializable {

// Fields

Private int id;
Private String bt;
Private String sxrq;
Private String yxrq;
Private String ydfw;
Private String ydfwqd;
Private String fbrxm;
Private String fbrbh;
Private String fbsj;
Private String bz;
Private String fbzt;
Private String sfzd;
Private String zqsj;
Private String fjmc;
Private String fjdz;
Private String zzz_nr;

2. Modify the fields corresponding to the database

3. Restart the service. OK.

The insert statement has changed:

Insert into ZGECM. values (BT, BZ, FBRBH, FBRXM, FBSJ, FBZT, FJDZ, FJMC, SFZD, SXRQ, YDFW, YDFWQD, YXRQ, zqsj, ZZZ_NR, ID) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.