unlikelysource.com

Can you give an example of a JOIN in Zend\Db\Sql?


Can you give an example of a JOIN in Zend\Db\Sql?
A: $select->join(
'foo' 			// table name,
'id = bar.id', 		// expression to join on (will be quoted by platform object before insertion),
array('bar', 'baz'), 	// (optional) list of columns, same requirements as columns()
$select::JOIN_OUTER 	// (optional), one of inner, outer, left, right also represented by constants in the API
);

BACK

© 2018 unlikelysource.com | all rights reserved