SqlException: DB2 SQL error: SQLCODE: -302, SQLSTATE: 22001, SQLERRMC: null

前端 未结 3 1113
生来不讨喜
生来不讨喜 2020-12-15 17:00

What does sqlcode -302 means? Where do i get the sqlcode definitions?

Please advice

Thanks,

3条回答
  •  無奈伤痛
    2020-12-15 17:42

    You can find the codes in the DB2 Information Center. Here's a definition of the -302 from the z/OS Information Center:

    THE VALUE OF INPUT VARIABLE OR PARAMETER NUMBER position-number IS INVALID OR TOO LARGE FOR THE TARGET COLUMN OR THE TARGET VALUE

    On Linux/Unix/Windows DB2, you'll look under SQL Messages to find your error message. If the code is positive, you'll look for SQLxxxxW, if it's negative, you'll look for SQLxxxxN, where xxxx is the code you're looking up.

提交回复
热议问题