mysql - select a mix of multiple entries -



mysql - select a mix of multiple entries -

i have table 2 columns:

name | type

now querying table autocomplete html form , result similar pseudo query.

select 10 closest_names each type names input

any thought how real query like?

i have experience in autocomplete value comes database asking query right? here's example, hope help

select name,type <table> name '%input%' limit 10

mysql autocomplete

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -