Home >Backend Development >PHP Tutorial >mysql - How to process and integrate the contents of two tables into a third table in php

mysql - How to process and integrate the contents of two tables into a third table in php

WBOY
WBOYOriginal
2016-08-04 09:22:21919browse

The database has three tables A B C. There are millions of data in table A and there are fields keys in them. This field is used for replacement. Tables B and C also have keys fields. Now I want to randomly select three keys from the two tables B and C and combine them one by one to replace them. I want to ask an expert to give me some advice on removing the keys field in table A. It would be great if there is some ready-made code that I can learn from. Thank you

Reply content:

The database has three tables A B C. There are millions of data in table A and there are fields keys in them. This field is used for replacement. Tables B and C also have keys fields. Now I want to randomly select three keys from the two tables B and C and combine them one by one to replace them. I want to ask an expert to give me some advice on removing the keys field in table A. It would be great if there is some ready-made code that I can learn from. Thank you

You already know the processing logic, you just need to turn it into code.
The most you can do is add some if else logical judgments. So quickly write a php to implement it yourself

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn