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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T12:21:30+00:00 2026-05-18T12:21:30+00:00

I apologize if link is not the exact term for this in advance. I

  • 0

I apologize if "link" is not the exact term for this in advance.

I have a table with user info, (user&password). I need the same user:password pair to appear in another table in the same database. the second table needs to copy the first one at all times – if an entry is deleted from the first one, or added – the changes must apply to the second table instantly.

Please, I need an example of how this can be done, as I do not know the terminology to search on google..


I only need two columns to be a duplicate, not the entire table.

  • 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-18T12:21:31+00:00Added an answer on May 18, 2026 at 12:21 pm

    A view may work, depending on the constraints imposed by your existing system, and those imposed by views. It saves duplicating data:

    CREATE TABLE web_users (username VARCHAR(255), password VARCHAR(255));
    
    CREATE VIEW forum_users AS SELECT username, password FROM web_users;
    
    INSERT INTO web_users VALUES ('user1', 'password1');
    
    SELECT * FROM forum_users;
    +----------+-----------+
    | username | password  |
    +----------+-----------+
    | user1    | password1 |
    +----------+-----------+
    
    INSERT INTO forum_users VALUES ('user2', 'password2');
    
    SELECT * FROM forum_users;
    +----------+-----------+
    | username | password  |
    +----------+-----------+
    | user1    | password1 |
    | user2    | password2 |
    +----------+-----------+
    
    SELECT * FROM web_users;
    +----------+-----------+
    | username | password  |
    +----------+-----------+
    | user1    | password1 |
    | user2    | password2 |
    +----------+-----------+
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I apologize in advance for not knowing how to better state this question. In
I apologize for the newb question but have not found a solution online. I
I apologize in advance, if this question doesn't make sense. I'm a newbie. I
I apologize if this has already been asked - I'm not certain of the
I'm just starting to get into JQuery so I apologize in advance if this
Disclaimer: I apologize that this question is so long. I have added code as
I'm sure this is a stupidly simple question, so I apologize in advance. I'm
Im having the exact same problem as stated on this answered post - nav-collapse
I'm new to makefiles, so I apologize in advance if this is a silly
Not sure how to title this, so I apologize if it's misleading or not

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.