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 994645
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T06:36:22+00:00 2026-05-16T06:36:22+00:00

I have a table that has 7000 rows, I added a new column to

  • 0

I have a table that has 7000 rows,
I added a new column to this table
The table has a mysql DateTime so.

When i updated the table to fill in this new table it updated the datetime,

I took an sql dump just before i did the update so now i need to use the sql dump to revert the datetime back (and only that column).

How do i do that?

  • 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-05-16T06:36:22+00:00Added an answer on May 16, 2026 at 6:36 am

    There are a couple ways I can think of to do this off the top of my head.

    First is to create another mysql database and load the dump into that database (make sure it’s not going to load into the first database from a use commmand in the dump), and then use the data from that database to construct the update queries for the first.

    The second, easier, more hackish way, is to open the dump in a text editor, pull out just that table, and find and replace to make update statements for just that column based on primary key instead of inserts. You’d need to be able to find and replace on patterns.

    A third way would be to load the dump in an abstract sql tool letting it do the parsing for you, and write new queries from the data in the abstract syntax trees.

    A fourth, again hackish, possibility, if this isn’t a live system, is to rollback and re-perform the more recent transformations (only if they are simple).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a table that has a column called 'status'. This can be set
I have table that has a column of type DateTime, I would like to
I have a table that has two datetime columns (one for start time and
I have a table that has records with a structure similar to this.. ID
I have a MySQL database that has over 9000 rows with 10 fields. It
I have a table that has records in the form(simplified): ID (int), startTime(DateTime), endTime(DateTime)
I have a table that has the following columns: GRVLID GRID Timein Timeout This
I have SQL table that has a varchar(8) column that occasionally has binary data
i have a table that has zero to many children. just like how this
I have a table that has a TASK_START_DATE and TASK_FINISH_DATE Columns of type datetime

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.