mysql
文章平均质量分 69
r i c k
学会分享,是一件很快乐的事情。
展开
-
《数据库系统原理与应用》学习笔记
《数据库系统工程师》----软考中级真题记录《数据库系统概论》学习笔记,包含课件ppt和电子版书籍,学习博客参考链接,以及原创 2022-05-07 11:31:52 · 1919 阅读 · 1 评论 -
mysql中更改列的名称
有时我们想更改数据库中列的名称,用下列语法即可: ALTER TABLE 表名 CHANGE 字段名 新字段名 字段属性 eg:[sql] view plain copyalter table admin change id Id_user int; ...转载 2018-04-23 23:30:47 · 18413 阅读 · 0 评论 -
java.sql.SQLException: No suitable driver found for
现在是凌晨1点48,我花了两个半小时来找bug。今天出现编码出现了No suitable driver found for jdbc,又是找遍了网上的资料,基本上都说是三个问题: 一是:连接URL格式出现了问题(Connection conn=DriverManager.getConnection ("jdbc:mysql://localhost:3306/XX","root","XX...原创 2018-04-24 01:56:21 · 8036 阅读 · 1 评论 -
连接Mysql时: No operations allowed after connecti
出现这样的原因很简单。在对数据库操作结束后关闭连接是正确的做法,没什么大问题。至于出现:No operations allowed after connection closed。这样的问题原因只有一个,你这里和数据库的连接Connection是一个Static的,程序共享这一个Connection。所以第一次对数据库操作没问题,当把Connection关闭后,第二次还想操作数据库时Conne...原创 2018-04-25 14:44:56 · 1381 阅读 · 0 评论 -
jsp虐我千百遍,我带你如初恋!
1. 刚学jsp,由于自己水平有限,编写jsp注册用户时出现bug,我至少花了15个小时来找bug,最后找到bug感觉非常有成就感,所以写下这些告诉刚学jsp们不要犯我这样的错误: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the ma...原创 2018-04-26 22:53:48 · 237 阅读 · 0 评论 -
Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nes
错误提示:Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: The server time zone value '�й���ʱ��' is unrecognized...转载 2019-01-15 13:55:11 · 3326 阅读 · 0 评论 -
jsp+mvc:从表单提交的日期怎样正确的保存在mysql中?
思路:一、含有getter和setter方法的类里面设置为字符串类型二、dao里面:SimpleDateFormat df = new SimpleDateFormat(“yyyy-MM-dd”);//字符串类型转换成java中的日期类型java.util.Date m_time1 = df.parse(member.getM_time());//java中的日期类型转换成sql中的...原创 2019-04-02 10:14:35 · 1208 阅读 · 0 评论