Skip to content
This repository

Home 

indeyets edited this page · 2 revisions

Pages 1

Clone this wiki locally

Examples

Select Queries


    <?php
    $q = new SelectQuery(array('my_table', 'another_table'));
    $q->setWhere(new Condition('=', new Field('fk1', 0), new Field('id', 1)));

    echo $q->sql();
    ?>

will output:


    SELECT `t0`.* FROM `my_table` as `t0`, `another_table` as `t1` WHERE `t0`.`fk1` = `t1`.`id`

Something went wrong with that request. Please try again.