<由于是新手,所以会有很多问题要请教的>关于数据库的问题!
我用paradox做了一个表,表的结构我已经建立。
我再delphi中添加了DataSource1,table1,query1。
table1连接到了a123.db,数据源连接到了table1,query1连接到了datasource1。
然后我用Query1.SQL.Add执行sql语句。
现在我想执行这样的一个语句。
select max(Index) from table1;
既:Query1.SQL.Add('select max(Index) from table1');
然后执行Query1.ExecSQL;
现在我想把用'select max(Index) from table1'语句查询到的数据附值给tempIndex。
我该用什么函数把这个查询结果附值给tempIndex呢?
请指教!