我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

java写Mysql更新语句出现异常

String sql = "update kucun set"+textField_3.getText()+"="+textField_1.getText()+ "where id="+textField_2.getText();
Statement st=conn.createStatement();
int result= st.executeUpdate(sql.toString());
这个会出现SQLException异常,是哪里错了?求大佬解答

是不是第一个set后边没有空格。

近期文章

  • TypeError: unsupported operand type(s) for +: 'NoneType' and 'float'如何处理?
  • netty怎么合并并分割ByteBuf?
  • eclipse 4.5.2安装STS想用spring boot,过程显示成功却找不到spring boot,求解惑
  • 关于open refine 的运行内存问题
  • Description has only two Sentences 程序实现
  • Another kind of Fibonacci 代码写法
  • Hot girl with cool car
  • Mine sweeping 程序的问题
  • Trouble with Election! 程序设计的思路
  • Key Vertex 代码思想
  • Volume of a cylinder 容积问题
  • Roll The Cube C语言
  • Dig The Wells 程序的编写设计
  • Harmony Forever 的实现
  • Here’s a Product Which Will Make You Tensor
  • C# 使用partial关键字添加的部分类文件 变成了窗体文件 求真相
  • Decompressing in a GIF 格式问题
  • Security Center 如何输出
  • Rose Shop 输出图形
  • Assignment Tools 工具问题

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华