timestamp conundrum

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

    #1

    timestamp conundrum

    I was under the impression from the manual that if you added a field to a
    table of type timestamp this would automatically be updated after each
    insert/update of a new record, but all I get is 00000000.

    Is there something else I should set?

    Thanks.


  • D. Pickering

    #2
    Re: timestamp conundrum

    That should work. It only will update the "FIRST" timestamp (so if you have
    more than one, check the first one).
    Also it can't be type time,date, or datetime, but must be type timestamp,
    preferably for max compatiblity, timestamp(14).
    dp

    "Bill" <no@where.com > wrote in message
    news:blh191$pgj $1@sparta.btint ernet.com...[color=blue]
    > I was under the impression from the manual that if you added a field to a
    > table of type timestamp this would automatically be updated after each
    > insert/update of a new record, but all I get is 00000000.
    >
    > Is there something else I should set?
    >
    > Thanks.
    >
    >
    >[/color]


    Comment

    • D. Pickering

      #3
      Re: timestamp conundrum

      That should work. It only will update the "FIRST" timestamp (so if you have
      more than one, check the first one).
      Also it can't be type time,date, or datetime, but must be type timestamp,
      preferably for max compatiblity, timestamp(14).
      dp

      "Bill" <no@where.com > wrote in message
      news:blh191$pgj $1@sparta.btint ernet.com...[color=blue]
      > I was under the impression from the manual that if you added a field to a
      > table of type timestamp this would automatically be updated after each
      > insert/update of a new record, but all I get is 00000000.
      >
      > Is there something else I should set?
      >
      > Thanks.
      >
      >
      >[/color]


      Comment

      • Bill

        #4
        Re: timestamp conundrum


        "D. Pickering" <dcpjunk@hps.co m> wrote in message
        news:x3Ffb.226$ 1s5.217531527@n ewssvr30.news.p rodigy.com...[color=blue]
        > That should work. It only will update the "FIRST" timestamp (so if you[/color]
        have[color=blue]
        > more than one, check the first one).
        > Also it can't be type time,date, or datetime, but must be type timestamp,
        > preferably for max compatiblity, timestamp(14).
        > dp[/color]

        Thanks for replying!

        Actually, I did only have one timestamp field but as I said it alwasy set a
        value of 00000, so I just ended up making it a Date field instead and
        setting it manually. Might work better when I upgrade to version 4.0.15.

        [color=blue]
        >
        > "Bill" <no@where.com > wrote in message
        > news:blh191$pgj $1@sparta.btint ernet.com...[color=green]
        > > I was under the impression from the manual that if you added a field to[/color][/color]
        a[color=blue][color=green]
        > > table of type timestamp this would automatically be updated after each
        > > insert/update of a new record, but all I get is 00000000.
        > >
        > > Is there something else I should set?
        > >
        > > Thanks.
        > >
        > >
        > >[/color]
        >
        >[/color]


        Comment

        • Bill

          #5
          Re: timestamp conundrum


          "D. Pickering" <dcpjunk@hps.co m> wrote in message
          news:x3Ffb.226$ 1s5.217531527@n ewssvr30.news.p rodigy.com...[color=blue]
          > That should work. It only will update the "FIRST" timestamp (so if you[/color]
          have[color=blue]
          > more than one, check the first one).
          > Also it can't be type time,date, or datetime, but must be type timestamp,
          > preferably for max compatiblity, timestamp(14).
          > dp[/color]

          Thanks for replying!

          Actually, I did only have one timestamp field but as I said it alwasy set a
          value of 00000, so I just ended up making it a Date field instead and
          setting it manually. Might work better when I upgrade to version 4.0.15.

          [color=blue]
          >
          > "Bill" <no@where.com > wrote in message
          > news:blh191$pgj $1@sparta.btint ernet.com...[color=green]
          > > I was under the impression from the manual that if you added a field to[/color][/color]
          a[color=blue][color=green]
          > > table of type timestamp this would automatically be updated after each
          > > insert/update of a new record, but all I get is 00000000.
          > >
          > > Is there something else I should set?
          > >
          > > Thanks.
          > >
          > >
          > >[/color]
          >
          >[/color]


          Comment

          Working...