码迷,mamicode.com
首页 > 数据库 > 详细

Mysql中select into from用法

时间:2015-09-18 20:13:12      阅读:224      评论:0      收藏:0      [点我收藏+]

标签:

原文:http://www.111cn.net/database/mysql/60705.htm

       

       在mysql中用select into from一直报错,

       错误:#1327 - Undeclared variable: target_test

       select into from要求目标表target_table不存在,因为在插入时会自动创建

       后来在网上看资料说Mysql不支持select into from语句,所以用其他方法来替代select into from语句:

       Create target_table(Select * from Table1);

Mysql中select into from用法

标签:

原文地址:http://www.cnblogs.com/FTDtt/p/4820033.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!