sql server - Search any alphabet in string using Sql Query -


can search alphabet in string 'a + 2 + b' or '3 * b' or '4 / - c'?

basically string not fix, need query this. such if string has 'b' query return me have 'b'.

thanks in advance!

oh yeah, absolutely. wewesthemenace mentioned, use like , wildcards comparison. let's data looked this

 id  formula  1   + 2 + b + 5 * 3  2   3 * b  3   4/a - c  4   ball 

let's @ query , results

select * tablename formula '%b%'  result:  1   + 2 + b + 5 * 3  2   3 * b  4   ball  select * tablename formula '%b%5'  result:  1   + 2 + b + 5 * 3 

Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -