Select Max(Field1) From Table1
解决方案 »
- 获取进程名不全!!!如何解决??
- cxGRID能否对模板进行保存
- 问题1:如何得到鼠标在form1中的位置,不是屏幕中的位置。问题2:如何在form1最小化时拷贝到0,100,0,100这个区域的图至image1。
- delphi 英文著名的BBS有哪些???
- 关于系统托盘的?
- 在DELPHI7.0中可以同时添加一组按钮吗?如何添加呢?大家帮帮忙,新手求助!!!!!
- PsRBExportDevices 輸出pdf文件, 中文亂碼,如何解決?
- Delphi中时间的表示法?
- delphi 引入wsdl文件 怎么更新?
- 软件做完了,怎么作成安装程序,要注意什么?
- 在win98下开发的网络系统(超市管理软件)在win95 下运行是否会导致网络速度变慢?
- 请问一下用什么打开*.pdg文件?
这么抠门...
MaxValue:Integer;
begin
with Query1 do
begin
Close;
SQL.Clear;
SQL.Add('Select Max(Field1) as MaxField From Table1 ');
Open;
MaxValue := FieldByName('MaxField1').AsInteger;
end;
MaxValue:Integer;
begin
with Query1 do
begin
Close;
SQL.Clear;
SQL.Add('Select Max(Field1) as MaxField From Table1 ');
Open;
MaxValue := FieldByName('MaxField1').AsInteger;
end;
end;