示例#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);
}