gpt4 book ai didi

mysql - 我无法将数据从主表复制到临时表

转载 作者:行者123 更新时间:2023-11-29 11:00:08 25 4
gpt4 key购买 nike

下面是代码:

CREATE TABLE maintable (
Name varchar(10),
phone_number numeric(10)
);
INSERT INTO maintable
VALUES ("Max", 9896995632);
SELECT
*
FROM maintable;
create table #TempTable as
maintable;

最佳答案

Use Insert into in select statement.Now main table data move to temp table

CREATE TABLE maintable (Name varchar(10),phone_number numeric(10));
INSERT INTO maintable VALUES ('Max', 9896995632);

SELECT * INTO #TempTable FROM maintable

SELECT * FROM #TempTable

关于mysql - 我无法将数据从主表复制到临时表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42411395/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com