我想在下一个dt student_weight
+ student_height
值。
我应该怎么做?
(我英语不好,抱歉:()
$table = 'student';
$primaryKey = 'student_id';
$columns = array(
array( 'db' => 'student_weight', 'dt' => 0 'field' => 'student_weight'),
array( 'db' => 'student_height', 'dt' => 1 'field' => 'student_height'),
array( 'db' => 'student_grade', 'dt' => 2 'field' => 'student_grade'),
);
ex)学生数据库
id = 10 / student_weight = 30 / student_height = 150
ex)我想在数据表中得到这个结果
student_weight = 30 / student_height =150 / tot = 180