<!-- 
     page taken from 
     http://www.mediawiki.org/wiki/Extension:DataTable2/Lua
-->  
== Lua library ==

=== mw.ext.datatable2.select ===

<code>mw.ext.datatable2.select( table, where, orderBy )</code>

Selects data from a logical table. The arguments work the same way as the arguments <code>table, where, order-by</code> in the <code>[[{{NAMESPACE}}:{{BASEPAGENAME}}#&lt;dt2-showtable&gt;|&lt;dt2-showtable&gt;]]</code> tag.

The result is returned as a (potentially empty) numerically-indexed array (with indexes starting at 1) of associative arrays, each of which represents a record. If no records are found, '''false''' is returned.
