not suitable error??/

deadrock 2001-04-19 09:47:00
//================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
...全文
93 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

23,407

社区成员

发帖
与我相关
我的任务
社区描述
Java 非技术区
社区管理员
  • 非技术区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧