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
error when calling php/xml file in browser
NetWorking data , VFP 9
Error string in catch block?
Setting msExchMailboxSecurityDescr
iptor with VB.NET
Word 2002/xp: Error Message: "Run-time error '4248'; 'This command is not available because no document is open.'"
CMDKEY error message
Add Exchange 2010 footer to all emails
How can I retrieve a message I just wrote but hadn't had chance to save?
vb script to ping hosts and check operating system
Store file in mysql using connector.net and blob field