Se sei capace di fare quello che dici di avere fatto non capisco come mai tu non sappia fare quello che vuoi fare. Questo è un mistero.
Comunque.
Se vuoi avere tutti i dati (utenti + foto_utenti)
Se vuoi soltanto i record relativi alle foto.codice:select * from foto_utenti tab1 inner join utenti tab2 on tab2.id_utente = tab1.id_utente where tab1.id_utente = 111
codice:select * from foto_utenti tab1 where tab1.id_utente = 111


Rispondi quotando