mysql使用select into from 提示 Undeclared variable
来源:互联网 发布:删除不了windows.old 编辑:程序博客网 时间:2024/05/19 13:45
在进行数据库表的复制与备份的操作过程中,我们应该都知道有 select into from 和 insert into select 两种方法,这两种方法的区别在此就不讲了。
然而今天在使用 SELECT INTO FROM 备份mysql数据表的时候,运行相关 sql 语句的时候却一直返回 [Err] 1327 - Undeclared variable: ...... 这种错误,实在不解,经过查询相关资料才知道,原来 mysql 数据库是不支持 SELECT INTO FROM 这种语句的,但是经过研究是可以通过另外一种变通的方法解决这个问题的,下面就来说说解决这个错误的办法吧!
经过搜索相关资料以及实验结果证实,可以使用
Create table Table2 (Select * from Table1);
这种语句代替
SELECT vale1, value2, value3 into Table2 from Table1;
下面看一个本人实际操作中的例子吧!
create table hyd_day_loandetil_del_bak (SELECT * FROM hyd_day_loandetil WHERE ID in(SELECT DAY_ID FROM TEMP_DAY_ID));
阅读全文
0 0
- mysql使用select into from 提示 Undeclared variable
- select into from 提示 Undeclared variable.....错误的解决办法
- select into ...from... 提示 Undeclared variable.....错误的解决办法
- select * into 新表名 from 原表名 where 子句报错Undeclared variable
- MySQL中的SELECT...INTO...FROM
- mysql中insert into select from的使用
- mysql中insert into select from的使用
- mysql中insert into select from的使用
- mysql中insert into select from的使用
- mysql中insert into select from的使用
- mysql中insert into select from的使用
- mysql select into使用
- mysql select into使用
- Mysql的INSERT INTO SELECT与SELECT INTO FROM
- mysql select / insert into / from file
- MySQL不支持 SELECT INTO FROM 这种语句,MySQL SELECT INTO FROM 语句的替代方案
- select into from 和 into from select
- mysql的insert into from select 和update by select
- 【剑指offer-解题系列(29)】数组中出现次数超过一半的数
- GTK3.0学习第三天---图片GtkImage
- 自定义控件小总结
- BUSINESS NETWOKING
- 最大似然参数估计
- mysql使用select into from 提示 Undeclared variable
- 解决ubuntu无法修改分辨率为1920*1080问题
- MySQL日期和时间类型
- Day3
- linux 下C操作SQLite(增删改查)
- Python3 配置文件(configparser)
- Week Training: 413 Arithmetic Slices
- C++递归算法之放苹果
- 全面解析Android之Handler机制