时间:2021-07-01 10:21:17 帮助过:54人阅读
我知道要改字段别名,原生的我知道,但是tp的数据库语法该怎么改
$Model->field('id,nickname as name')->select();
$name = M('User')->join('LEFT JOIN before_conditions on before_conditions.uid=User.id')->where($mapBarCode)->select();
for($i=0;$i
$name[$i]['b_id'] = $name_b['id'];
}
dump($name); 输出结果user表的id几不会被覆盖
$Model->field('id,nickname as name')->select();
$name = M('User')->join('LEFT JOIN before_conditions on before_conditions.uid=User.id')->where($mapBarCode)->select();
for($i=0;$i
$name[$i]['b_id'] = $name_b['id'];
}
dump($name); 输出结果user表的id几不会被覆盖