db2 - What's wrong with this stored procedure? -


My first stored function is actually getting close to running This is a compiled but when I call it Run with test.fttest5 ('YEAR'); It throws an error

SQL state: 22001 vendor code: -303 Message: [SQL0303] Host variable * N is not compatible Reason. . . . : A feature, selection, call, set, values, NIT, NIT, NIT, NET, NET, NET, NET, NET, NET, NET, NET, NET, NET, NET, NET, NET, NET, NET, NET , NET, NET, NTP,>

In addition to how do I specify unlimited data types in my stored procedure? I DECLARE temp VARCHAR (MAX); , but it did not work on my platform ISERGs DB2V5R4.

  Test the process. FitTit 5 (In FT Expression Characters (30)) Language reads SQL SQL data Dynamic results set 1 CMD VAARAAR begin to start (50); Announce whr VARCHAR (50); Announce the X cursor for the slab; Set cmd = 'test test_check' to 'select'; If ftExpression is not faucet then whr = ftExpression; end if; Set CMD = CMD || When the WHI taps the case then '' Els' order by '' Whr END; Preparation with CMD; Open x; Return; End     ;  

I believe the error you get here is actually Getting processed before your process was activated You have a defined process with a parameter that is a CHAR but you are calling it with VARCHAR when you type in SQL interactive mode, such as the parameters come in the form of VARCHAR.

Try calling it like this: call test.fttest5 (CHAR ('YEAR'))

Or you can also parameter the VARCHAR You can still create, though you still want to see what will happen.

However I think you can set the set result cursor cursor x line.

There is also IBM documentation.

In addition, I keep ready before the announcement.

Comments