Select::Limit

Specify the quantity of data to return

Sintaxe

namespace ProtocolLive\PhpLiveDb;

/**

 */
final class Select{
public function Limit(
string|null $Amount,
int $First = 0
):self;
}
Parameters

$Amount - The quantity of data to return;
$First - The data to start with;

Examples

$consult = $Db->Select('users');
$consult->Limit(10);
$consult->Run();
//select * from users limit 0,10
$consult = $Db->Select('users');
$consult->Limit(50, 100);
$consult->Run();
//select * from users limit 100,50