java.sql.SQLException: 第 1 行: ';' 附近有语法错误......怎么解?
publicstaticvoidzongkuotermid(){Zongkuochulic=newZongkuochuli();con=c.getConnection()...
public static void zongkuotermid() {
Zongkuochuli c = new Zongkuochuli();
con = c.getConnection();
try {
sql = con.createStatement();
sql.executeUpdate("update csnlibrary.dbo.allInclusive set enterDate = LEFT((SELECT MIN(code) FROM csneschool.dbo.term), 4) + '-09-01' "
+ " WHERE (CONVERT(varchar(10), enterDate, 120) < (LEFT ((SELECT MIN(code) FROM csneschool.dbo.term), 4) + '-09-01');");
} catch (SQLException e) {
e.printStackTrace();
}
} 展开
Zongkuochuli c = new Zongkuochuli();
con = c.getConnection();
try {
sql = con.createStatement();
sql.executeUpdate("update csnlibrary.dbo.allInclusive set enterDate = LEFT((SELECT MIN(code) FROM csneschool.dbo.term), 4) + '-09-01' "
+ " WHERE (CONVERT(varchar(10), enterDate, 120) < (LEFT ((SELECT MIN(code) FROM csneschool.dbo.term), 4) + '-09-01');");
} catch (SQLException e) {
e.printStackTrace();
}
} 展开
- 你的回答被采纳后将获得:
- 系统奖励15(财富值+成长值)+难题奖励30(财富值+成长值)
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询