Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8511785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T04:06:11+00:00 2026-06-11T04:06:11+00:00

Its possible gets a created and updated time of one row directly with sql/mysql?

  • 0

Its possible gets a created and updated time of one row directly with sql/mysql?
I know a method to got a table last update but i was wondering if there will be a quick natively way to do this with sql.

I made a way to do this creating automatically 2 fields in table(created_date and updated_date) but I decided to ask you first because there is probably a better way to do this.

I hear suggestions!
Thanks for help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T04:06:13+00:00Added an answer on June 11, 2026 at 4:06 am

    I don’t know of any way to do this without having two extra columns in the table – but what I do to update them is to have a database trigger do it rather than the application logic.

    There are some benefits, but also some drawbacks to using a trigger approach.

    Firstly, the benefits:

    • It is much easier to add it this way as an afterthought to an app. Very little changes to the appliation/site code. The trigger takes care of it all. (assuming you insert new rows by specifying field names)
    • The triggers will take care of any other ways to change the data – someone changing a row from a console would still cause the trigger to fire as would another application using the same database.
    • Allows the possibility (though I don’t do it) of having a pure row inserted/updated table.

    But some downsides too:

    • Unless you know that triggers are doing these updates, it can often be overlooked and the triggers become forgotten when migrating to another server etc
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was wondering if its possible to directly cast objects within a foreach loop.
I know its possible to create activities by doing something like the code bellow,
I know its possible to accept a list of objects as a parameter thanks
Does anyone know if its possible to use phing to copy an entire folder
Anyone know if its possible to enable horizontal scrolling ONLY in a windows forms
I know its possible to use a wakelock to hold the screen, cpu, ect
In SQL its possible to have fields that cannot contain duplicate data. How is
I was wondering if its possible to change the default program class that gets
I am wondering if its possible to have a an (||)or or (&&)and operator
I was wondering if its possible to use the Google maps IFRAME code to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.