php - Select statement MySql -
i'm trying simple select statement on mysql database. in mssql works fine, can't work in mysql.
what want following:
lets have table (named testtable) this:
id | domain | nrofvisitors -------------------------------------------- 1 | something.com | 435 -------------------------------------------- 2 | blabla.com | 231
and have string, http://bla.ttt.something.com/blabla
now want pass in string, , select rows domain in string. in mssql can following:
select * testtable "http://bla.ttt.something.com/blabla" "%" domain "%"
but in mysql returns 0
rows. doing wrong?
thanks in advance!
select * testtable "http://bla.ttt.something.com/blabla" concat("%",domain,"%")
Comments
Post a Comment