Jump to content

Ricerca nel database il 100.000 post


najaru

Recommended Posts

Questa query, da eseguire direttamente nel database, permette di ricercare chi ha postato il 100000esimo messaggio

il codice si riferisce al caso in cui le tabelle hanno un prefisso come ibf_

SELECT  m.member_id, m.members_display_name, p.pid AS post_id, t.tid as  topic_id, t.title AS topic_title, f.id AS forum_id, f.name AS forum_nameFROM ibf_posts pLEFT JOIN ibf_topics t ON (t.tid=p.topic_id)LEFT JOIN ibf_forums f ON (f.id=t.forum_id)LEFT JOIN ibf_members m ON (m.member_id=p.author_id)ORDER BY pid ASCLIMIT 99999,1
Edited by Skillman_92
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. to insert a cookie message.