Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

Folgendes Problem, ich habe zwei MySQL Tabellen.

Ich muss erst die eine (nennen wir sie "a") abfragen und anhand der Ergebnisse aus a dann Tabelle "b" abfragen.

In SQL sähe das so aus:

SELECT * FROM `phpbb_posts_text` WHERE post_id = (SELECT post_id FROM `phpbb_posts` WHERE topic_id=4);

Klappt in MySQL aber leider nicht....

Jemand Tips, für die ich schonmal sehr dankbar bin....

Geht das auch mit 'nem Join?

Wie gesagt muss ich erst die erste Tabelle abfragen und dann zu allen IDs der ersten dann Sachenaus der zweiten raussuchen...

Wie geht das denn mit Join?

;-)

Daran bin ich auch gescheitert...

Nein, nein MySQL.

Aber mir ist nur für SQL etwas eingefallen das funktioniert bei MySQL jedoch leider nicht.

Mit JOINs müsste das so aussehen:

[b]SELECT[/b] * [b]FROM[/b] phpbb_posts_text

[b]INNER JOIN[/b] phpbb_posts

[b]ON[/b] phpbb_posts_text.post_id = phpbb_posts.post_id

[b]WHERE[/b] phpbb_posts.topic_id = 4;

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.