not suitable error??/
//================CreateTable.java=============================
//The Class will create a table.
import java.sql.*;
public class CreateTable
{
public static void main(String argn[])
{
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
}
catch(java.lang.ClassNotFoundException e)
{
System.out.println("Driver Not Found:"+e.getMessage());
}
try
{
String Strexe1;
String Strexe;
Strexe="delete from dealer where login_id='gitsen'";
Strexe1="Create table Test(author char(12),tel char(10))";
Connection conn=DriverManager.getConnection("jdbc.odbc.Ecard");
Statement stmt=conn.createStatement();
int rs=stmt.executeUpdate(Strexe1);
stmt.close();
conn.close();
System.out.println("表结构建立成功!");
}
catch(SQLException sp)
{
System.out.println("SQL ERROR:"+sp.getMessage());
}
}
};
javac 成功
java 错误:
not suitable error