php access to undeclared static property,select into from 提示 Undeclared variable.....错误的解决办法...

在进行数据库表的复制与备份的操作过程中,我们应该都知道有 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 www.phpernote.com (Select A.id,B.id as typeId,A.brand,A.quanpin,A.simple from brands as A,cartype as B where A.type=B.name group by A.brand);

这个是关联两个表得出一个查询结果,然后将结果插入到一个新创建的表 www.phpernote.com 中。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
JEDI JCL/JVCL Installation Supported development tools versions: - Delphi 4 Update Pack #3 (JCL Only) - Delphi 5 Update Pack #1 - Delphi 6 Update Pack #2 (including Personal Edition) - Delphi 7 Please make sure you have installed latest update packs. You can download them from Borland Support web page: http://www.borland.com/devsupport/delphi/ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! IMPORTANT !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! If you have installed any previous version of the JCL/JVCL you have to delete them. ! ! It is also necessary to remove all installed JCL/JVCL packages from the IDE. ! ! Do not mix files or compiled packages from older versions of the JCL with ! ! current version. ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! JEDI INSTALLER ============== Helps you to integrate JCL/JVCL with Delphi IDE. Currently it assists with: - Compiling and installing design-time packages to the IDE - Adding sample JCL Debug extension dialogs to Object Repository - Adding JCL and JVCL \Source path to Library Path in Environment Options - Integrating JCL/JVCL help file to the IDE. ******************************************************** To start Installation click on: Install.bat file in the JEDI root folder. ******************************************************** NOTE: ====== We know of one case where there was a probelm when running install.bat: Undeclared identifier: "TObjectList" Unable to compile file: snmp.pas The solution was to move the D7/D7.Net paths to the end of Environement Vars. To do so, on NT/XP right-click My Computer,Properties,Advanced, Environment Variables, Find the PATH variable in the System variables list, click the Edit button and change the value (move D7 paths to the end).

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值