SQL query to ignore case in where condition -


i trying run below sql query.$1 passing parameter. need case insensitive. eg:

test.sql server1.net , test server1.net ( both values should taken, think below query takes parameter in lowercase default) requirement is, irrespective of case, whatever values have given, query should process. please ?

select * act_msgs m,node_name nn msg_name '%test%' , nn.node_name = '$1' 

in tsql can use upper function as:

declare @vartest varchar(100); set @vartest = upper('test') select * act_msgs m,node_name nn upper(msg_name) '%' + vartest +'%' , nn.node_name = '$1' 

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -