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
Mailman, the GNU Mailing List Manager - is there an interface to programmatically maintain email addrs?
importing to firefox
SQL 2005 on a windows 2003 cluster , how to back up
Auto fill user name in "Login" field
How to alter web page so Google Chrome will clear old data?
qmail ,mutt problem: Error sending message, child exited 127 (Exec error.).
how to truncate the transaction logs in exchange 2010 after NT backup
Uplink fast set on a distribution layer switch
How to get an USB speaker to work with Eee PC 900 Xandros Linux
'System.Xml.Linq' doesn't contain any public member