M
M
Malik2020-09-13 01:49:23
MySQL
Malik, 2020-09-13 01:49:23

How can I copy a table from one database to another table?

Hello! tell me how to copy a table from one database from a table to another database?
INSERT INTO `Project_database`.`nex_autentification`
SELECT *
FROM `Project_database_old`.`auth_item`;
i used this approach it didn't work

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alexalexes, 2020-09-13
@alexalexes

1. Use database/table import/export in some tool like phpmyadmin.
or
2. Write a script with two connections. For the first connection, you make a portioned selection, for the second, you insert the result of the selection from the first connection.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question