Displaying 2 results from an estimated 2 matches for "executequeri".
Did you mean:
executequery
2008 Jun 17
4
Formating Date Field
First.jsp
------------------
<jsp:usebean id="db" class="db.dbClass" scope=session/>
<html>
<body>
<form action="MyAction.jsp" method="post">
<% ResultSet rs=db.executeQuery("select no,name from mytable");
while(rs.next())
{%>
<input type=checkbox value=<%=rs.getString(1)%> onclick=callJs(<
2006 Apr 19
0
ResultSetMetaData
dose Ruby or ActiveRecord have the Java/JDBC equivalent for retrieving
ResultSet meta data...
PreparedStatement statement = null;
try
{
statement = connection.prepareStatement("select * from some_table");
ResultSet rs = null;
try
{
rs = statement.executeQuery();
ResultSetMetaData rsMetaData = rs.getMetaData();
int columnCount = rsMetaData.getColumnCount();
more