select count(*) from tableName where condition
解决方案 »
- Error creating form bean of class y2ssh.sg.ch2.web.form.AddForm
- Failed to load Main-Class manifest attribute from 。。
- MyEclipse 部署问题,大家来看一看,很简单但是很怪
- (请教)关于用JasperReport生成RTF格式报表出现的问题?
- 怎样计算客户的访问次数
- 50分求助jsp视频教程,分不够可以再加!只要能播放马上送分!
- tomcat下,直连Access的问题
- MyEclipse 打开包含了“iframe”标签的JSP页面出错 R6025
- Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
- weblogic 的 .jws是什么文件?
- 这几句实例化命令究竟有什么区别?
- 问:如何在select 某表的时候,只取众多记录中的前多少条。为了提高速度,因为只需要前几条,必须是前几条。
可以select * from tablename......
把结果集遍历一遍,返回记录数可以select count(*) as countNum from tablename .....从结果集解取出 countNum来,再返回
select count(*) as countNum from tablename .....这种方法也是要打开记录集才能得到值的。
应该是要操作结果集材可以的吧