Microsoft
Software
Hardware
Network
Question : DB2 Procedure
I am creating a stored procedure In DB2 in which i have written a select query and the result of that sql query in a variable let us say A and this variable i am using inside another select query as
select id from test where id like %A;
the above select query is throwing an error.It is saying that it is not able to recognize %.
Please suggest.
Answer : DB2 Procedure
Host variables need to be prefaced with a colon.
e.g.
1: 2:
set :A = '%' || :A; select id from test where id like :A;
Random Solutions
Outlook 2007 - Connection to Microsoft Exchange is unavailable, when creating calendar items?
Restore default wireless connection on laptop
Computer in VMWare has black screen with _ symbol
integration used to measure population increase
Windows could not load the installer for DiskDrive. Contact your hardware vendor for assistance.
Unix filler
objectdatasource error typename cannot be found
Can I define a document root in html for all the anchors on a page?
SBS 2008 shared folder permissions problem - read only - need full control
Whats wrong with my css?