Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9193

Re: DB2 error in DS management console

$
0
0

This is one of the many errors that I get:

DB2 SQL Error: SQLCODE=-418, SQLSTATE=42610, SQLERRMC=null, DRIVER=3.57.82

 

Which again points to a management console issue.  I dont know how to view this create statement to provide to my DBA.

 

 

SQL0418N

 

A statement contains a use of a parameter marker that is not valid.

Explanation

Untyped parameter markers cannot be used:
  • in a SELECT list
  • as the sole argument of a datetime arithmetic operation
  • in some cases as the sole argument of a scalar function
  • as a sort key in an ORDER BY clause
  • as an argument of an XMLQUERY, XMLEXISTS or XMLTABLE expression.
  • as an argument of UNNEST, CARDINALITY, MAX_CARDINALITY or TRIM_ARRAY, or used in array element specification.
  • on the left hand side of an assignment statement when the data type of the right hand side cannot be determined
Parameter markers can never be used:
  • in a statement that is not a prepared statement
  • in the fullselect of a CREATE VIEW statement
  • in the triggered action of a CREATE TRIGGER statement

References to the PARAMETER function in the first argument of the XQuery function db2-fn:sqlquery are also considered to be parameter markers.

The statement cannot be processed.

 

User response

Correct the syntax of the statement. If untyped parameter markers are not allowed, use the CAST specification to give the parameter marker a data type.

sqlcode: -418

sqlstate: 42610


Viewing all articles
Browse latest Browse all 9193

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>