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

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -