mysql field in table -


select * users select * country 

the users , country tables have same field called "city".
table country have field "prov".

i need add field "prov" in users table.

select u.city,c.prov users u join country c on u.city = c.city; 

Comments

Popular posts from this blog

php - Autoloader issue not returning Class -

ruby on rails - Scope conditionals for count? -

ruby - Prevent Custom Validation Error on Association -