Is it possible to both:
--insert a number of values in a table, and
--calculate a new value using 2 of the values just inserted and then add that to the table in the same row?
Well, they're not exactly "inserted" values: the two values are a timestamp and an auto increment index. So I can't know them until the insert is underway or completed, can I?
I can imagine doing this in four steps:
1. insert new values,
2. select the 2 values,
3. calculate the new value from those 2,
4 insert the calculated value
Is there a faster method?
Can I have mySQL do the calculation on the fly in one step:
1. insert new values; using timestamp and index just added to db, calculate new value, insert it in same statement
What do you think?

