Java开发网 |
注册 |
登录 |
帮助 |
搜索 |
排行榜 |
发帖统计
|
您没有登录 |
» Java开发网 » Database/JDBC/SQL/JDO/Hibernate
» Other DB
打印话题 寄给朋友 订阅主题 |
作者 | Re:java+access表数据不能修改 [Re:dreamtobetrue] |
why
問題兒童 总版主 发贴: 4629 积分: 388 |
于 2006-09-25 18:04
check the return value of executeUpdate and see whether it is 0 try adding a ; at the end of the insert statement string try PreparedStatement I am wondering if f_time is of type DateTime, I won't pass a String to it like that, though it may be allowed. 程序没有報错 Just did a Google search. and found this http://forum.java.sun.com/thread.jspa?threadID=597260&messageID=3178446 or http://forum.java.sun.com/thread.jspa?threadID=712716&messageID=4122465
why edited on 2006-09-25 18:15
|
作者 | Re:java+access表数据不能修改 [Re:dreamtobetrue] |
dreamtobetrue
发贴: 18 积分: 0 |
于 2006-09-26 10:14
多谢元老同志指出我的错误! 我以后会注意细节的。 |
作者 | Re:java+access表数据不能修改 [Re:dreamtobetrue] |
dreamtobetrue
发贴: 18 积分: 0 |
于 2006-09-26 10:16
HenryShanley 多谢!果然是这个问题,我加上去之后就成功了。 但是能不能告诉我为什么,因为我在操作别的数据库如MS SQL ,MySQL的时候 没有关闭连接,同样可以进行插入或者Set操作。 |
作者 | Re:java+access表数据不能修改 [Re:why] |
nt
发贴: 9 积分: 0 |
于 2006-09-27 13:43
强人啊,不关connection ,居然还讨论..... Accrual. |
已读帖子 新的帖子 被删除的帖子 |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |