mysql - SELECT QUERY FROM three tables SQL -


my tables this:

news

id_news id_gallery headline content date 

galleries

id_gallery gallery_name 

images

id_image id_gallery 

and need select every image news. unfamiliar sql, appreciate every kind of help. have searched, when try use queries find, doesn't work, i'm doing wrong.. help!

thank time

select i.* images join news n on n.id_gallery = i.id_gallery n.id_news = <selected news> 

Comments

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -