ANTICHAT

ANTICHAT (https://forum.antichat.xyz/index.php)
-   Общие вопросы программирования (https://forum.antichat.xyz/forumdisplay.php?f=206)
-   -   помощь по переносу базы данных (https://forum.antichat.xyz/showthread.php?t=1441146)

linmsqn 18.07.2022 02:22

смотрите. у меня на сайте есть разные бд и в таблице разные названия колонок, как мне адаптировать и перенести эту базу данных по названия колонок в другой бд? короче если не понятно я лучше завтра скринами кину что именно хочу

McLore 18.07.2022 02:40

How to import data from one table to another table in sql

I have two database there is two table both databse how to import data from database table to another database table in sql2008 standard edition. I have tried to export/import function but no luck .

stackoverflow.com


Insert all values of a table into another table in SQL

I am trying to insert all values of one table into another. But the insert statement accepts values, but i would like it to accept a select * from the initial_Table. Is this possible?

stackoverflow.com

linmsqn 18.07.2022 13:33

Цитата:

Сообщение от McLore

How to import data from one table to another table in sql

I have two database there is two table both databse how to import data from database table to another database table in sql2008 standard edition. I have tried to export/import function but no luck .

stackoverflow.com


Insert all values of a table into another table in SQL

I am trying to insert all values of one table into another. But the insert statement accepts values, but i would like it to accept a select * from the initial_Table. Is this possible?

stackoverflow.com


Не особо понял как пользоваться

SQL:





Код:

INSERT
INTO
new_table
(
Foo
,
Bar
,
Fizz
,
Buzz
)
SELECT
Foo
,
Bar
,
Fizz
,
Buzz
FROM
initial_table
-- optionally WHERE ...





все разобрался, спасибо!


Время: 12:34