我正在尝试执行插入select操作,但计算时需要一些别名值,但我的插入操作不需要所有别名值。我只需要field0,total_sum,hard_coded_val,但依赖于其他的计算。有没有办法在insertSELECT中忽略其他值或指定值()?INSERT INTO table(field0,total_sum,hard_coded_val)
SELECT s.*, sum1+sum2 AS total_sum, 'hard_coded_val' FROM
下面是我的查询,以及对我的子查询的简单的英文解释,在我认为我想要它执行的地方。mysql_query("INSERT INTO donations( email,
Here I want to select the row with the max date, get the value of the "total" colum