NIUCLOUD是一款SaaS管理后台框架多应用插件+云编译。上千名开发者、服务商正在积极拥抱开发者生态。欢迎开发者们免费入驻。一起助力发展! 广告
# 直接删除 > table : 表名 > where : 判断语句数组 ~~~ $where = []; $where[] = '字段值="'.字段值.'"'; $back = $Sql->del($table,$where); ~~~ ***** # 表清空 > table : 表名 ~~~ $back = $Sql->del($table,[],['all'=>1]); ~~~ ***** # 只输出语句 > table : 表名 > where : 判断语句数组 ~~~ $where = []; $where[] = '字段值="'.字段值.'"'; $back = $Sql->del($table,$where,['echo'=>1]); ~~~ ***** # 事务只输出语句 > table : 表名 > where : 判断语句数组 ~~~ $where = []; $where[] = '字段值="'.字段值.'"'; $step[] = $Sql->del($table,$where,['echo'=>1]); ~~~ ***** # 事务输出语句并强制数据变更 > table : 表名 > where : 判断语句数组 ~~~ $where = []; $where[] = '字段值="'.字段值.'"'; $step[] = [$Sql->del($table,$where,['echo'=>1]),'forced'=>1]; ~~~ *****