DB2 SQL error code-302

Source: Internet
Author: User

The main variable value of sql0302n in the execute or open statement is used accordingly.

Too large.

Note:

It is found that the value of the input primary variable is too large for use in select, values, or pre-compiled statements.

. One of the following situations has occurred:

* The corresponding primary variables or parameter tags used in SQL statements are defined as strings, but the input primary variable package

The contained string is too long.

* The corresponding primary variables or parameter tags used in SQL statements are defined as numbers, but the input primary variables include

The value is out of the range.

* The ending character NUL is lost in the main variable of the string terminated with NUL in C language.

* Federated system users: In the transfer session, the restrictions specific to the data source may be violated.

Because incorrect primary variables or incorrect

Sqllen value, so this error occurs.

The statement cannot be processed.

User response:

Make sure that the type and length of the input main variable value are correct. If you enter a primary variable to provide a value to the parameter tag

Match these values with the implicit data type and length of the parameter tag.

Federated system users: for transferring sessions, determine which data source causes the error (see Fault Diagnosis

Guide to learn how to identify a failed data source ). Check the SQL dialect of the data source

Determine the specific violation and adjust the failed statement as needed.

Sqlcode:-302

Sqlstate: 22001,220 03

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.