php - Mysql command select from id to id for search -
what im trying select videos database vid = 1 , max vid = 25000, have 400k videos don't want start them need select way, make command searching script how see not working ... hope can me problem
mysql command searching (this command show me how many videos found):
select count(*) num video vid between 1 , 25000 , title '%key1%' or title '%key2%' or title '%key3%' or title '%key4%'
add like
in parenthesis (), try doing:
select count(some_id) num video vid >= 1 , vid <= 25000 , (title '%key1%' or title '%key2%' or title '%key3%' or title '%key4%')
Comments
Post a Comment