Login +

Documentation

SLS_QueryBuilder::innerJoin

Since SillySmart 1.0.7

Description

Specifies inner join for select statment
public SLS_QueryBuilder innerJoin ( string $joinTable, string $joinCondition, [ string $joinAlias ] );

Parameters

  • string $joinTable
    the table on wich you want to process a inner join
  • string $joinCondition
    the condition for your join
  • string $joinAlias
    the alias of your join, if empty table name will be used

Return

SLS_QueryBuilder $this
current queryBuilder instance.

Exemples

  •  $qbd->select()
         ->from("news","n")
         ->innerJoin("user",$qbd->expr()->eq('n.user_id','u.user_id'),"u")

Comments

No comment on this function, be the first !

Add your comment

You must login/register to post a reply.