Discussion:
Declare Statement
(too old to reply)
c***@hotmail.com
2007-09-10 04:07:02 UTC
Permalink
If the table field type is VARCHAR and
If I wanna to declare a variable to hold this VARCHAR field.
How do I use the declare statement?

DECLARE X VARCHAR; .....?

Thanks in Advance.


. BTW, I try to look into the DB2 manual and online help.
But I cannot find anything related to this topics.
..May be I search the wrong the wrong keyword....
Knut Stolze
2007-09-10 10:27:40 UTC
Permalink
Post by c***@hotmail.com
If the table field type is VARCHAR and
If I wanna to declare a variable to hold this VARCHAR field.
How do I use the declare statement?
DECLARE X VARCHAR; .....?
DECLARE x VARCHAR(<length>)

You should probably use the same length as you have in the table definition.
--
Knut Stolze
DB2 z/OS Utilities Development
IBM Germany
Continue reading on narkive:
Loading...