Skip to content

Ru:OSQL

pkorobeinikov edited this page Apr 18, 2011 · 7 revisions

SELECT

<?php
OSQL::select()->
    get(DBField::create('id'))->
    get(DBField::create('name'))->
    get(DBField::create('age'))->
    from(User::dao()->getTable())->
    where(
        Expression::ilike(
            new DBFiled('name'),
            'Joh'
        )
    );
?>

UPDATE

<?php
?>

DELETE

<?php
OSQL::delete()->
    from('table')->
    where(
        Expression::lt('id', 1000)
    );
?>
Clone this wiki locally