合规国际互联网加速 OSASE为企业客户提供高速稳定SD-WAN国际加速解决方案。 广告
* 删除数据 | 传入参 | 说明 | | --- | --- | | table | [ 必填 ] 表名 | | where | [ 必填 ] 判断语句数组 | | other | [ 选填 ] 设置数组 | | - echo | [ 选填 ] 只输出语句( 1是 0否 ) | | - forced | [ 选填 ] 强制所有数据变更( 1是 0否 ) | | - all | [ 选填 ] 清除表中所有数据(1是 0否) | | 回调参 | 说明 | | --- | --- | | succeed | 执行状态(1成功 0失败) | | msg | 提示信息 | | type | 语句类型 | | yuju | 输出语句 | | [ sql ] | echo启用时直接输出语句 | * 直接删除 ~~~ $where = []; $where[] = '字段值="'.字段值.'"'; $back = $D_P->del($table,$where); ~~~ * 表清空 ~~~ $step[] = $D_P->del($table,[],['all'=>1]); ~~~ * 只输出语句 ~~~ $where = []; $where[] = '字段值="'.字段值.'"'; $back = $D_P->del($table,$where,['echo'=>1]); ~~~ * 事务只输出语句 ~~~ $where = []; $where[] = '字段值="'.字段值.'"'; $step[] = $D_P->del($table,$where,['echo'=>1]); ~~~ * 事务输出语句并强制数据变更 ~~~ $where = []; $where[] = '字段值="'.字段值.'"'; $step[] = [$D_P->del($table,$where,['echo'=>1]),'forced'=>1]; ~~~