The Arcive of vBulletin Modifications Site. |
|
Details »»
|
|||||||||||||||||||||||||
Hey.... i`m a bit confised now
![]() i need to select all posts knowking just forumid IN 1 QUERE... postid->threadid->forumid any ideas? Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Code:
SELECT * FROM post LEFT JOIN thread USING (threadid) WHERE thread.forumid=1; |
|
#3
|
|||
|
|||
|
cool, respect....... tnx
|
|
#4
|
|||
|
|||
|
i have it more complicated
i have a table called xxx where is a column with postid.... i need a query which select data from table xxx using forumid
|
|
#5
|
|||
|
|||
|
Code:
SELECT * FROM xxx LEFT JOIN post USING (postid) LEFT JOIN thread USING (post.threadid) WHERE thread.forumid=2
|
|
#6
|
||||
|
||||
|
Code:
SELECT * FROM xxx LEFT JOIN post USING (postid) LEFT JOIN thread USING (threadid) WHERE thread.forumid=2 |
![]() |
|
|