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
Adobe - monitor profile [..] appears to be defective. Please rerun your monitor calibration software
SQLCommandBuilder - GetUpdateCommand, GetInsertCommand and GetDeleteCommand Questions
Email is being received but cannot send out
Juniper Network Connect won't reconnect after forced logout
Count number of occurances in a string
vlan isolation - need to keep a vlan from seeing network
How do I mount a partition in deft linux?
Windows 2k8 R2 Remote Desktop Services keeps disconnecting users
iMac Snow Leopard Mouse pointer jitter and always go back to upper left corner
Shell script to queue commands