problem with update-query on datetime

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • gondor

    #1

    problem with update-query on datetime

    hi!

    i have a problem with a update-query:

    start-structur (column 1 index, 2 datetime, 3 time of measurement, 4-6 values):

    1 | 0000-00-00 00:00:00 | 0 | 21 | 22 | 23
    2 | 0000-00-00 00:00:00 | 1 | 21 | 22 | 23
    3 | 0000-00-00 00:00:00 | 3 | 21 | 22 | 23
    4 | 0000-00-00 00:00:00 | 5 | 21 | 22 | 23
    5 | 0000-00-00 00:00:00 | 3 | 21 | 22 | 23 <-- zero crossover
    6 | 0000-00-00 00:00:00 | 5 | 21 | 22 | 23
    7 | 0000-00-00 00:00:00 | 7 | 21 | 22 | 23

    wich update-query is useful to add the measurmenttime on the datetime?

    (startdate: 2004-05-01 14:04:56)

    should be:

    1 | 2004-05-01 14:04:56 | 0 | 21 | 22 | 23
    2 | 2004-05-01 14:04:57 | 1 | 21 | 22 | 23
    3 | 2004-05-01 14:05:00 | 3 | 21 | 22 | 23
    4 | 2004-05-01 14:05:05 | 5 | 21 | 22 | 23
    5 | 2004-05-01 14:05:08 | 3 | 21 | 22 | 23
    6 | 2004-05-01 14:05:13 | 5 | 21 | 22 | 23
    7 | 2004-05-01 14:05:20 | 7 | 21 | 22 | 23

    sorry for my 'poor' english... i´m german.

    thanks.
Working...