Hi folks,
Habe 2 Tabelle in meiner DB, die (simplifiziert) so aussehen:
(users-Tabelle)
--------------|
users|content |
--------------|
2 |45,67 |
--------------|
3 |45 |
--------------|
(content-Tabelle)
-----------|
id |bodytxt|
-----------|
45 | text1 |
-----------|
56 | text2 |
-----------|
67 | text3 |
-----------|
ich möchte gern nun mit nur einer Mysql-Abfrage die id und bodytxt von "content"-Tabelle, die der User mit id=3 nicht gelesen hat.
Sprich, ich sollte sowas bekommen:
-----------|
id |bodytxt|
-----------|
56 | text2 |
-----------|
67 | text3 |
-----------|
Sollte sowas in der Art: (pseudo-code)
select id.content,bodytxt.content from content,users where id.content!in_array(users.content)