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
Help with Lucene query in Alfresco
How to access class due to 'cannot instantiate abstract class' error
IF - Then script based on file date?
loop an array in an array and insert into db
FTP - without log in
adding static IP addresses onto a network. anything I should take into account?
Comparing columns in a table
Users resolution keeps reverting back to 800x600
WatchGuard XTM Web UI
Mac OS X 10.6.3 Can't logon to Active directory