Skip to content

Instantly share code, notes, and snippets.

@albert-massey
Created June 19, 2014 10:00
Show Gist options
  • Save albert-massey/e5073b732a2ecfa2b12c to your computer and use it in GitHub Desktop.
Save albert-massey/e5073b732a2ecfa2b12c to your computer and use it in GitHub Desktop.
Applying JOIN on tables "material" and "boiling_point" in MediaWiki
$res = $dbr->select(
array( 'material', 'boiling_point' ),
array( 'material_name','value' ),
array(
'mat_id>0'
),
__METHOD__,
array(),
array( 'boiling_point' => array( 'INNER JOIN', array(
'wiki_material.id=mat_id' ) ) )
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment