企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
# 直接编辑 > table : 表名 > field : 字段数组 > where : 判断语句数组 ~~~ $field = []; $field['字段名'] = '字段值'; $where = []; $where[] = '字段值="'.字段值.'"'; $back = $Sql -> edit($table,$field,$where); ~~~ ***** # 只输出语句 > table : 表名 > field : 字段数组 > where : 判断语句数组 ~~~ $field = []; $field['字段名'] = '字段值'; $field['字段名'] = ['字段名'+1]; $where = []; $where[] = '字段值="'.字段值.'"'; $back = $Sql -> edit($table,$field,$where,['echo'=>1]); ~~~ ***** # 事务只输出语句 > table : 表名 > field : 字段数组 > where : 判断语句数组 ~~~ $field = []; $field['字段名'] = '字段值'; $where = []; $where[] = '字段值="'.字段值.'"'; $step[] = $Sql -> edit($table,$field,$where,['echo'=>1]); ~~~ ***** # 事务输出语句并强制数据变更 > table : 表名 > field : 字段数组 > where : 判断语句数组 ~~~ $field = []; $field['字段名'] = '字段值'; $where = []; $where[] = '字段值="'.字段值.'"'; $step[] = [$Sql->edit($table,$field,$where,['echo'=>1]),'forced'=>1]; ~~~ *****