php - Is it possible to do a find function in SQL? -


i'm looking this:

let's have string..

$chk="pie"; 

and want find in database string $chk in it..

say database looks this:

username realname 123pieo  bob ilikepie carl wat      tom 

can select ones contain $chk in them how?

this select rows contain "pie" in username.

select * tablename username "%pie%" 

Comments

Popular posts from this blog

python - Why doesn't list have safe "get" method like dictionary? -

razor - Is this a bug in WebMatrix PageData? -

sql server - Stored procedure -