mariadb使用多个where表中的条件更新

时间:2017-04-04 04:15:25

标签: sql sql-update mariadb

我正在尝试根据两个表中的条件更新表中的字段

<div class="carousel-inner">
    <?php foreach($s as  $key => $per_student): ?>
        <?php if($key=='0'): ?>
            <div class="item active">
        <?php else: ?>
            <div class="item ">
        <?php endif; ?>
                <div class="row">
                    <?php foreach($per_student as $student): ?>
                        <div class="col-md-3">
                            <a class="thumbnail" href="#"><?php echo $student->fullname;?></a>
                        </div>
                    <?php endforeach; ?>
                </div>
            </div>
    <?php endforeach; ?>
</div> 

返回“update a, b set a.`value` = '1265' where a.`id` = b.`ID` and b.`type` = 'product' and a.`key` = '1234'

0 个答案:

没有答案