D7+kbmmemtable v7.12. SQL语句出问题了,有人能解惑吗?
1. 建立了两个数据表,dbA和dbB。dbA的两个字段id ftinteger,text ftstring,dbA的三个字段id ftinteger,aid ftinteger,text ftstring。
2. 现在建了一个kbmmemSQL,名字为KSQL,程序中的
KSQL.tables.clear;
KSQL.tables.add(*t1*, dbA);
KSQL.exeSQL(*select * from t1*);
编译、运行都正常,然后我想试试多表就出问题了,
KSQL.tables.clear;
KSQL.tables.add(*t1*, dbA);
KSQL.tables.add(*t2*, dbB);
KSQL.exeSQL(*select t1.id,t2.text from dbA as t1,dbB as t2 where t2.aid=t1.id*);
编译没问题,运行时提示错误。‘’this symbol not expected in FormClause Line:1,Col:11**.
1. 建立了两个数据表,dbA和dbB。dbA的两个字段id ftinteger,text ftstring,dbA的三个字段id ftinteger,aid ftinteger,text ftstring。
2. 现在建了一个kbmmemSQL,名字为KSQL,程序中的
KSQL.tables.clear;
KSQL.tables.add(*t1*, dbA);
KSQL.exeSQL(*select * from t1*);
编译、运行都正常,然后我想试试多表就出问题了,
KSQL.tables.clear;
KSQL.tables.add(*t1*, dbA);
KSQL.tables.add(*t2*, dbB);
KSQL.exeSQL(*select t1.id,t2.text from dbA as t1,dbB as t2 where t2.aid=t1.id*);
编译没问题,运行时提示错误。‘’this symbol not expected in FormClause Line:1,Col:11**.