W
wyw
Unregistered / Unconfirmed
GUEST, unregistred user!
SQL语句如下:
query1.close;
query1.sql.clear;
query1.sql.add('insert into table1');
query1.sql.add('(name,age,sex)');
query1.sql.add(valueskkname,:kkage,:kksex)');
query1.parambyname('kkname').value:='Mike';
query1.parambyname('kkage').clear;
query1.parambyname('kksex').value:='Male';
query1.execsql;
可是却报错,说:参数kkage的类型不知道,怎么回事?
query1.close;
query1.sql.clear;
query1.sql.add('insert into table1');
query1.sql.add('(name,age,sex)');
query1.sql.add(valueskkname,:kkage,:kksex)');
query1.parambyname('kkname').value:='Mike';
query1.parambyname('kkage').clear;
query1.parambyname('kksex').value:='Male';
query1.execsql;
可是却报错,说:参数kkage的类型不知道,怎么回事?