你进行的什么操作呀?看问题就是 @P2and 定义呗。
解决方案 »
- [原] 几种常用数据库树形处理
- 为什么去掉两个not结果不一样,循环的过程是怎样的呢?
- Linux下的主流数据库
- SQL语句有没有办法给一字段填入顺序号(记录号)?
- 如何用一条 SQL语句 或者 自定义函数/存储过程 实现这个过滤查询? *****100分*****
- 请问web站点连接mssql2005时,如何合理设置用户权限
- 我数据库中有一个表示时间的字段Time,若时间格式是2005-3-24 22:39:17 ,SQL语句中 ...order by Time DESC ,结果并没有按照时间早晚来排
- 关系型数据库理论问题,请帮忙解决一下,谢谢大家
- 分页存储过程,多表查询,出问题了?
- SQL SERVER 2000高手请近
- 表的合并
- 如何计算下列平均价 求助
我用到数据库更新的语句static final String SET_POSITION = "update DBR set position = ? where play_id = ?and round_flag =1 and life_flag=1";
public void setPlace(int num,int playId){
Connection conn = null;
try{
PreparedStatement prestm = null;
//ResultSet rs = null;
synchronized (this) {
conn = dataSource.getConnection();
prestm = conn.prepareStatement(SET_POSITION);
prestm.setInt(1,num);
prestm.setInt(2,playId); prestm.execute();
}
prestm.close();
conn.close();
}catch (SQLException ex) {
ex.printStackTrace();
} finally {
try {
if (conn != null) {
conn.close();
}
} catch (SQLException ex) { }
}
}
where play_id = ?and round_flag 中的? 和and 之间应该有个空格
刚才急死了 !!!^_^