예제 #1
0
function getConstraintsWithTable($table, $constraints)
{
    $q_table = getTableQuote($table);
    foreach ($constraints as $columnName => $value) {
        $constraints[$q_table . "." . $columnName] = $value;
        unset($constraints[$columnName]);
    }
    return getConstraintBody($constraints);
}
예제 #2
0
function getConstraints($constraints)
{
    return "WHERE " . getConstraintBody($constraints);
}