Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / March 2007

Tip: Looking for answers? Try searching our database.

Data type and host variable

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
young - 15 Mar 2007 16:59 GMT
Hello all,
I tried to do a sqc program with a "SELECT  column INTO :host_variable
FROM table" statement and  got an error SQL4942N="The statement
selects an incompatible data type into host variable"
My column is Decimal(6,2) data type definition, and my host variable
is defined as float

I work on AIX 5.2 with DB2 8.2
Any idea?

Thanks for your help

Y.
young - 15 Mar 2007 17:28 GMT
> Hello all,
> I tried to do a sqc program with a "SELECT  column INTO :host_variable
[quoted text clipped - 9 lines]
>
> Y.

Please ignore this message. The problem was that my host variable was
not in DECLARE section
Thanks

Y.

Y.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.