gpt4 book ai didi

mysql - 将数据从一个表复制到另一个表时出现错误,sqlite

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

我有两个名为

的表
state_master
location_master_state_master

您好,我想将数据从一个表复制到另一个表,但出现以下错误

SQLiteManager: Likely SQL syntax error: INSERT INTO state_master(id, create_uid, code, create _date, name, write_uid, write_date) SELECT id, create_uid, code, create_date, name, write_uid, write_date FROM location_master_state_master; [ near "create": syntax error ]
Exception Name: NS_ERROR_FAILURE

执行以下查询时

INSERT INTO state_master(id, create_uid, code, create _date, name, write_uid, write_date) SELECT id, create_uid, code, create_date, name, write_uid, write_date FROM location_master_state_master;

有人能帮我解决这个错误吗?

最佳答案

create_date 之间有一个空格,应该是 create_date:

INSERT INTO state_master(id, create_uid, code, create_date, name, write_uid, write_date) SELECT id, create_uid, code, create_date, name, write_uid, write_date FROM location_master_state_master;

关于mysql - 将数据从一个表复制到另一个表时出现错误,sqlite,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31920490/

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