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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:36:35+00:00 2026-05-26T16:36:35+00:00

I have made a really silly mistake of having a seperate date and time

  • 0

I have made a really silly mistake of having a seperate date and time field in my DB. I really need to put these together and just have one field (datetime) Luckily these are individually in the corect format. Is there a way I can di an SQL statement to take the date, time (with a space inbetween) and input these in to the new datetime field? I have around 3000 records in this table so really dont want to do it by hand.

Thanks

Richard

  • 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-26T16:36:36+00:00Added an answer on May 26, 2026 at 4:36 pm

    run:

    UPDATE dates SET datettime_field = CONCAT(date_field,' ', time_field);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need your help. I have made a really clean and simple example to
Gidday Just learning the jquery UI, and have made some really good progress today,
I have a silly little game that I made just for myself, but I
i have made an application having entity framewrok. It is wpf application, now it
I have made a map of functions. all these functions are void and receive
I have made a mistake in one of the commits. Now I want to
I'm developing some third-party application for Sina Weibo, but have something made me really
Disclaimer: I'm really new to ObjectiveC so I may have made fundamental errors in
I'm pretty new to java and really enjoying learning about it. I have made
I am on a large project, and have not really made any comment 'headers'

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.