编程教学讲座清华大学出版社.docVIP

  • 1
  • 0
  • 约8.89千字
  • 约 15页
  • 2018-05-31 发布于贵州
  • 举报
编程教学讲座清华大学出版社

JDBC编程教学讲座-清华大学出版社 .createStatement ; stat.execute CREATE TABLE Greetings Name CHAR 20 ; stat.execute INSERT INTO Greetings VALUES Hello, World! ; ResultSet result stat.executeQuery SELECT * FROM Greetings ; result.next ; Sytln result.getString 1 ; result.close ; stat.execute DROP TABLE Greetings ; stat.close ; conn.close ; 建立连接 catch SQLException ex while ex ! null ex.printStackTrace ; ex ex.getNextException ; catch IOException ex ex.printStackTrace ; /** 从database.properties 文件中获取连

文档评论(0)

1亿VIP精品文档

相关文档