Java试题

一个双鱼座的测开 2019-09-10 08:13:57
【题目】在普通应用程序中用JDBC做一个数据库事务,程序片断如下请填空:
String driver=“com.informix.jdbc.ifxDriver”;
String url=
“jdbc:informix-sqli://11.6.6.11:9002/test:INFORMIXSERVER=ifx”;
String user=“informix”;
String password=“informic”;
String sql=“update TESTDB set status=‘2’ ”



1
Connection conn= 2
Statement stment=conn.createsStatement();
Try
{

3 ;
stment .executeUpdate(sql);
4
5
6
}
catch(SQLException e)
{
try
{
7
8
9
}
catch(SQLException el)
{ //do nothing}
}
...全文
56 回复 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

62,635

社区成员

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

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