android - query for words between two tag <h3></h3> -


in need query search word between 2 tag

<h3>ali</h3> hasan ali <h3>ali kamali</h3> 

when user search ali need,

 <h3>ali</h3>  <h3>ali kamali</h3> 

enter image description here

try this,

select    *     mytable     field '<h3>%' + query + '%</h3>' 

see this fiddle working sample.

sql fiddle


Comments

Popular posts from this blog

php - Autoloader issue not returning Class -

python - Getting next two indexes regardless of current index -

ruby - Prevent Custom Validation Error on Association -