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
Post a Comment