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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T03:29:57+00:00 2026-06-17T03:29:57+00:00

I have added a new column that should store a timestamp value. This value

  • 0

I have added a new column that should store a timestamp value. This value currently exists in another table. So I tried to build a query to update my new column using the other table.

This is my current query:

    UPDATE `gc_users` U 
    SET    `registration_date` = ( SELECT `joindate` 
                                   FROM    `vb_user` 
                                   WHERE   `username` = U.`name` 
                                   LIMIT 0,1
                                 )

The problem is that after updating registration_date the value is 0000-00-00 00:00:00

New table: gc_users

  • Column: registration_date ( timestamp )
  • Example: 2013-01-11 15:24:04

Source table: va_user

  • Column: joindate ( int )
  • Example: 1354290120
  • 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-17T03:29:58+00:00Added an answer on June 17, 2026 at 3:29 am

    use FROM_UNIXTIME

    UPDATE  `gc_users` U
             INNER JOIN `vb_user` a
                ON a.`username` = U.`name`
    SET     u.`registration_date` = FROM_UNIXTIME(a.`joindate`)
    LIMIT   0,1
    
    • FROM_UNIXTIME
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have this constraint added to table MY_TABLE ALTER TABLE MY_TABLE ADD CONSTRAINT
Most of my content is in a new table I have added to JOOMLA
I need to have a new view(w/ ViewController) added over the top of another.
Say I have a table animals that has a column parent_id Say also that
Scenario: I have a fairly generic table (Data), that has an identity column. The
I have a stored procedure in my database that takes a table value parameter,
My storyboard seems locked. I have added new labels and imageviews to two different
I have added a new job in my hudson server which builds the project
I have IIS 7.5 With one web site I added new virtual directory and
I have a list within Sharepoint, using a custom new form I have added

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.