Result=Set

Result=Set

View Answers

August 24, 2008 at 4:10 PM

use the scrollable result set, first move the pointer from first record to last record and get the count and then again place the pointer to the above first position.

hope your question resolved.

August 25, 2008 at 10:10 AM

hai frnd..
SELECT COUNT(*) FROM search_log-tab WHERE visible='v";
will return the exact number of rows....

Otherwise in the while loop,insert a count variable..and increment by one
while(rs.next())
{
count++;
}

hai shibin varghese are u frm kannur district of kerala?

Thanks and Reg/
Prashob
[email protected]

August 26, 2008 at 11:45 AM

Hi friend,

Read for more information.


http://www.roseindia.net/jsp/user-search.shtml


Thanks.

Amardeep









Related Tutorials/Questions & Answers:
Sort Result set
Sort Result set   I build a connect for my page with the database and then read all rows and show it in a table, I want to change the view of my data to be sorted uppon a specific column when click on the column name, so what
Result=Set - Java Beginners
result set, first move the pointer from first record to last record and get...Result=Set  Hi Friend, Can u tell how to get the count of records. in a select operation like sqlstmt="SELECT * FROM search_log_tab WHERE
Advertisements
Result Set one to many mapping
Result Set one to many mapping  Suppose there are 5 tables in database named A,B,C,D and E. A has one to many relationship with B,C,D and D has one... Suppose result contains single entry of One record for A, Two records for B
java.sql.SQLExceptioan: Before start of result set - JDBC
java.sql.SQLExceptioan: Before start of result set   java.sql.SQLException: Before start of result set?what do i do?   Hi Friend... accessing the result like the following: while(resultSet.next()){ String st
how to chech result set is null or not - Java Beginners
how to chech result set is null or not  Hi, really very thanks for fast reply.I want to know how to check whether the result set is null or not in jsp.Please help me thanks, sakthi  Hi friend, Code to help
Hibernate Narrowing Criteria Result Set
Hibernate Narrowing Criteria Result Set In this tutorial you will learn how to narrow the Criteria result set. In Hibernate result set can be narrowed... will demonstrates how can you narrow the result set. For creating this example
How can we find the number of rows in a result set using PHP?
How can we find the number of rows in a result set using PHP?   How can we find the number of rows in a result set using PHP
How to add a columns with a button set to a Jtable built with database result set
How to add a columns with a button set to a Jtable built with database result set  hi, i have to build a gui to display account numbers and account... that button column to the table which is built with database result set. i would thank
how to store the REsult Set values in array and loop through it in java?
how to store the REsult Set values in array and loop through it in java?  I have two tables Slink and Locate Slink has column name Slinkid ,locate has Locateid,Slinkid. Slink has 9 rows 1,2,3,4,5,6,7,8,9 Locate has
how to store the REsult Set values in array and loop through it in java?
how to store the REsult Set values in array and loop through it in java?  I have two tables Slink and Locate Slink has column name Slinkid ,locate has Locateid,Slinkid. Slink has 9 rows 1,2,3,4,5,6,7,8,9 Locate has
How many ways we can retrieve the date in result set of mysql using php?
How many ways we can retrieve the date in result set of mysql using php?  How many ways we can retrieve the date in result set of mysql using php
How many ways we can retrieve the date in result set of mysql using php?
How many ways we can retrieve the date in result set of mysql using php?  How many ways we can retrieve the date in result set of mysql using php
How many ways we can retrieve the date in result set of mysql using php?
How many ways we can retrieve the date in result set of mysql using php?  How many ways we can retrieve the date in result set of mysql using php
How many ways we can retrieve the date in result set of mysql using php?
How many ways we can retrieve the date in result set of mysql using php?  How many ways we can retrieve the date in result set of mysql using php
How many ways we can retrieve the date in result set of mysql using php?
How many ways we can retrieve the date in result set of mysql using php?  How many ways we can retrieve the date in result set of mysql using php
How many ways we can retrieve the date in result set of mysql using php?
How many ways we can retrieve the date in result set of mysql using php?  How many ways we can retrieve the date in result set of mysql using php
How many ways we can retrieve the date in result set of mysql using php?
How many ways we can retrieve the date in result set of mysql using php?  How many ways we can retrieve the date in result set of mysql using php
Iterating Through JDBC ResultSet
. The iteration depends on the types of the result set object 1. Forward Only.- In this type of result set object we move only from start to end i.e..._TO_REPLACE_1 3. Scroll insensitive. This type of result set object is not capable
SQL Aggregate Concatenate
; Sometimes it is required to combine the result set of  records... fields in Mysql : concat ( ): The Syntax is used to combine the result set from... set of records in ascending order id. The Group by keyword is used when we
SQL UNION Operator
; The UNION operator combine the result-set of two or more... Query, The UNION query return you the set of distinct records from both... * FROM Stu_Class_10 UNION SELECT * FROM Stu_Class_12 Result ADS
JDBC Nested Resultset
want to describe you a code that helps in understanding JDBC Nested Result Set. The code include a class JDBC Nested Result Set, Inside the class we have a main... is used to retrieve the record set from a table and store the record set in a result
Mysql ASC Order
Mysql ASC Order       Mysql ASC Order is used to sort the result set by ascending or descending order. The Order by CLAUSE sort the result by specified column. Understand
Mysql Group By
to group the result-set by specified one or more columns. Understand... the result set by specified column 'empname'.ADS_TO_REPLACE_5 mysql>... | 29 | 1999-01-26 | +-------+----------+--------+------------+ 5 rows in set
Mysql Group By
functions to group the result-set by specified one or more columns. Understand... 'employee' and group the result set by specified column 'empname... rows in set (0.00 sec) Query for viewing data using group by clause
Mysql Alter View
not contain data. The view is the outcome result set of a SELECT statement... | 2008-12-23 | +-------+---------+------------+ 2 rows in set (0.00 sec... | 2008-12-23 | +---------+------------+ 2 rows in set (0.00 sec) Query
JDBC ResultSet Forward Type Example
JDBC ResultSet Forward Type Example: Through this ResultSet type the cursor only move forward in the result set and are non-scrollable. The following syntax are use for initialize the statement object to create a forward-only, read
SQL ORDER BY
; The ORDER BY keyword sort the table result set by a specified column. You... 10 SQL ORDER BY Syntax The ORDER BY keyword sort the table result set by a specified column. SELECT ColumnName(s) FROM
SQL Alter View
SQL Alter View       View is a virtual and imaginary table come out as result -set of an SQL statement. A virtual table contains rows and columns, as same
Mysql Merge Statement
using UNION clause.The UNION clause is used to combine the result set of any... | +-------+----------+------------+ 3 rows in set (0.00 sec) Query to create table... | 2009-01-01 | +-------+------+------------+ 6 rows in set (0.00 sec
Mysql Merge
. The UNION clause is used to combine the result set of any two sql queries... | +-------+----------+------------+ 3 rows in set (0.00 sec) Query to create table name employee02 :ADS... | | 6 | F | 2009-01-01 | +-------+------+------------+ 6 rows in set
Mysql Merge Statement
UNION clause. The UNION clause is used to combine the result set of any two... | Mahendra | 2009-01-04 | +-------+----------+------------+ 3 rows in set (0.00... | +-------+------+------------+ 6 rows in set (0.00 sec) Query to create table
Mysql Merge
UNION clause.The UNION clause is used to combine the result set of any two sql... | +-------+----------+------------+ 3 rows in set (0.00 sec) Query to create table name... | +-------+------+------------+ 6 rows in set (0.00 sec) Query to create table named Emptotal
Views
. That is based on the result set of a SELECT statement. A VIEW consists rows... | +------+---------------+----------+ 6 rows in set (0.00 sec) mysql> SELECT * FROM Products... | 5 | +---------+-------------+------+ 5 rows in set (0.00 sec
A method getColumnCount.
A method getColumnCount.  There is a method getColumnCount in the JDBC API. Is there a similar method to find the number of rows in a result set
fresher
fresher  why we will not move the result set object from one application to another application
create pdf from jsongrid
create pdf from jsongrid  i need to create pdf from jsongrid in java struts2.. otherwise i need to create pdf from result set
jsp code problem - Java Beginners
jsp code problem  Hi, I have a problem with else part. It did not show the message box when the result set is null. plz, help me. thank u..."); alert("Result set is null
JSP code problem - JSP-Servlet
JSP code problem  HI.. I have a DB2 stored procedure wich return a result set. I have made a report basing on this procedure using Crystal Reports. How to pass parameters to this procedure with java code in a JSP page
How to sort the rows in SQL?
to sort the records in your result set. The ORDER BY clause can only be used... sorts the result set based on the columns specified. If the ASC or DESC value
Features of JDBC
. 6. Result set enhancement a. Scrollable Result set ? It provides the ability... is used by GUI took for programmatic updating. b. Updateable Result set ? It allows the modification of data in a database table using result set. 7
SQL Plus
to format query result, Set options, Edit SQL commands and PL/SQL. Thanks
Criteria in Hibernate
where there is a variable number of conditions to be placed upon the result set
Resultset - JSP-Servlet
, it can be used in a while loop to iterate through the result set Thanks
how to load a table of data from oracle, to a jsp page using hashmap.
to use the hashmap.How can i convert a result set object to hashmap object
servlets
row representing one logical group of data with a number of columns.The result set would contain this table of data and each row can be accessed one by one. we
Transaction in last 3 months
from 20th of this month. If today is not twentieth then no result set should
JDBC access database
and the value retrieved from it stored in  result set rs.The Result Set... element through the rows obtained from a result set. Finally the println print the Id and name from the result set obtained from database. lastly all
Scrollable ResultSet - Java Beginners
result set, first move the pointer from first record to last record and get
large resultset values - SQL
"com.microsoft.sqlserver.jdbc.SQLServerException: The system is out of memory. Use server side cursors for large result sets:Java heap space. Result set size:35,886,780. JVM total memory size:66,650,112
java servlet connectivity problem with access
, ADDRESS FROM CUSTOMER"); // Display the result set as a list } catch

Ads