public\u0020void\u0020addGonggao(Gonggao\u0020Gonggao)\u0020{\n\t\ttry\u0020{\n\t\t\t//执行插入sql\n\t\t\trunner.update("insert\u0020into\u0020Gonggao(title,content,ctime)\u0020values\u0020(?,?,?)",\n\t\t\t\tGonggao.getTitle(),Gonggao.getContent(),Gonggao.getCtime());\n\t\t}catch\u0020(SQLException\u0020e)\u0020{\n\t\t\tthrow\u0020new\u0020RuntimeException(e);\n\t\t}\n\t\n\t}\n上述代码若添加成功则返回值是什么内容:上述代码没有明确的返回值,但是如果没有发生异常,表示添加成功。


原文地址: http://www.cveoy.top/t/topic/pQ2k 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录