Joins with composited prmary keys in PHP Libraries

Joins with composited prmary keys in PHP Libraries

Joerg.BernauJoerg.Bernau Posts: 2Questions: 1Answers: 0

Hi,

How can I query a composited prmary key with the PHP Libraries?

SELECT qu. strQuestion, qu.strImageReference FROM tbl_questions AS qu LEFT JOIN tbl_topics AS tp ON tp.idTopics=qu.refIdTopics LEFT JOIN tbl_answers AS aw ON aw.refIdTopics=qu.refIdTopics AND aw.refIdQuestions = qu.idQuestions;

Best Greetings from Lemgo, Germany

Joerg Bernau

Answers

  • allanallan Posts: 61,744Questions: 1Answers: 10,111 Site admin

    I'm afraid there is no support for composite keys with the Editor PHP libraries at the moment. This is a feature I hope to add for Editor 1.6 as it can be really useful.

    Allan

  • Joerg.BernauJoerg.Bernau Posts: 2Questions: 1Answers: 0

    Thanks, allan!

This discussion has been closed.