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
How can you search e-mail within Outlook 2010 and not use the index?
Roaming Profiles in Windows 7 Pro and SBS 2008
What would be my excel formular to find the percentage of errors
Increase Filesystem Size of RHEL 5
Grub menu in not loading on ESXi 4
How to Show Up image Use this Script please Help
Diffrence between debug & release versions
SSRS Combine two datasets into one data region - Must be in report not in SQL server
Lightweight network management for mobile workforce
asp.net mssql I have a need to update records where the record column needs modifing in orde to match the Id value