Microsoft
Software
Hardware
Network
Question : Passed parameter used in select statement where column like the passed parameter
How do I use passed parameter in
‘where column like my_parameter?
I have a loop where I’m passing parameters and need to update a table where column LIKE my_parameter. So the first my_parameter is say '9876' and I need to update the table where my_column like '9876%'.
Update my_table set my_column1 = 3 where my_column like my_parameter;
Answer : Passed parameter used in select statement where column like the passed parameter
this will do:
1:
Update my_table set my_column1 = 3 where my_column like my_parameter ||'%';
Random Solutions
HISTOGRAM WITH CP AND CPK ANALYSIS
Insert into MySQL Table from MSSQL Insert Trigger
How can I change the created and/or modified date of a FOLDER?
using window.open want to get rid of url bar in new window within IE7
How to clone Windows 2008 server
IIs7 on Windows server 2003
Backup Exec - Byte Count vs. Capacity Discrepancy
DNS windows 2008 R2
Random port flapping on Netgear 7248
Coldfusion complex query looping