select top 1 * from module order by No desc
解决方案 »
- 怎样用代码获取DataGridView的某一列的某一个字段的值?
- C# 批量更新数据库 联合主键更新问题!!!!!!!!!!!!!
- 超时时间已到。超时时间已到,但是尚未从池中获取连接。
- 怎么用DropDownList显示出生年月日
- 初学xml webservice问题
- WinForm 如何在Listbox添加多列项(如windows里,以查看详细信息方式查看文件)
- 客户端如何实现TCP方式端口复用?
- 如何给winform toolbar控件的每个按钮实现hotkey?
- 有关正则表达式的问题
- 怎样设置OpenFileDialog组件的Filter,使实现一次过滤出多种扩展名的文件??
- 在查询语句中排序的问
- C#初学者,有关于采集后过滤的问题.在线等...
如果不是,select * from module where No=(select max(No) from module ) 没测试过,试试
select * from module where No=max(No)No字段==自动ID
select top 1 * from module order by No desc