hi-
it is printing data in the console. i ran across some
code that helped.
thanks,
jim
new code....
/*
* Created on Aug 23, 2005
*
* TODO To change the template for this generated file
go to
* Window - Preferences - Java - Code Style - Code
Templates
*/
package calcpackage;
import java.lang.System;
/**
* @author HP_Owner
*
* TODO To change the template for this generated type
comment go to
* Window - Preferences - Java - Code Style - Code
Templates
*/
class calc {
static final String JDBC_DRIVER ="SQLite.JDBCDriver";
static final String DATABASE_URL =
"jdbc:sqlite://C:/calcDB/t1.db";
public static void main(String args[])
{
try
{
SQLite.Database d4 = new SQLite.Database();
d4.open("t1.db",0);
String arr4[] = new String[1];
arr4[0] = "tab%";
// d4.exec("create table mytbl (a integer)",
// null, arr4);
d4.exec("insert into mytbl values(18)",
null, arr4);
System.out.println(d4.get_table("select * from
mytbl"));
System.out.println(d4.dbversion());
d4.close();
}
catch(SQLite.Exception myException)
{
myException.printStackTrace();
}
}
}
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs