import java.sql.*;
public class jdbc
{
public static void main(String args[])
{
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
}
catch(ClassNotFoundException e)
{
}
try
{
Connection con=DriverManager.getConnection("jdbc:odbc:C:\\Program Files\\Microsoft Office\\数据库\\student.mdb","snow","ookk");
}
catch(SQLException q)
{
}
try
{
Statement sql=con.createStatement(); //29行
}
catch(SQLException s)
{}
ResultSet rs=sql.executeQuery("SELECT * FROM chengjibiao"); //33行
}
}
——————————————————————————————————
提示29行和33行的con和sql找不到符号?难道还有什么包没导入或者其他地方出错了?大家帮忙看看!
[此贴子已经被作者于2006-11-16 13:53:11编辑过]