我想在SQL的一个表中取出最后一行 列号为 A
和第一行列号为 A
请问应该怎么编写程序啊??
一有正确答案就结贴。
和第一行列号为 A
请问应该怎么编写程序啊??
一有正确答案就结贴。
解决方案 »
- MS SQL2000数据库中写了个名字叫dt_tpyme的存储过程,在SQL查询分析器中是这样可以运行的(内见)。那么在VB中如何带参数执行这个dt_tpyme存储过程?(参数需要是变量)
- VB如何隐藏可执行文件
- VB打包文件出现无法生成安装日志文件,请高手帮助
- 急!!!如何将form中的文本(比如text的值)添加到CrystalReport中
- 如何用程序控制打印一文本文件的内容?
- Grid总行数问题?
- 如何过滤数据库中的内容在dbgrid显示出来?
- 如何在字符串里带引号?
- 请问怎么改正这个错误?
- 应该如何学习VB?请各位大虾指教!
- 怎么把做好的软件烧成光盘并生成相应序列号?要求每张光盘产生的序列号不同
- 请问在vb中如何调用autocad自动绘制图
select top 1 A from table order by xxx asc
select min(a) from tablename
select top 1 A from table order by xxx desc
union all
select top 1 A from table order by xxx asc) a
select xx.* from (select top 1 A from table order by A asc) xx
union all
select yy.* from (select top 1 A from table order by A desc) yy