复制出错““From子句语法错误” (0分)

彤彤

Unregistered / Unconfirmed
GUEST, unregistred user!
ado+access数据库

adoquery2.Active :=false;
adoquery2.sql.clear;
adoquery2.sql.add(' insert into tabl2 select * from tabl1');
adoquery2.Active :=true;
为什么总是出错“From子句语法错误”
 
insert into table2(a,b,c) select a,b,c from table1
 
adoquery2.Active :=true;
這句改為:
adoquery2.execsql;
 
adoquery2.sql.add(' insert into tabl2 select * from tabl1');

tabl2 和 tabl1 表结构是不是相同? 不同不能这样写的!
 
顶部