摘要:
SQL的聚合函数及分组查询 要在这个世界上获得成功,就必须坚持到底:至死都不能放手。 count select count(*) from students #底层优化了 select count(1) from students #效果和*一样 select count(age) from emp 阅读全文
摘要:
SQL的基础函数 lower select lower(name) from students #将students表的所有name字段的数据全都转为小写打印出来 upper select upper(name) from students #将students表的所有name字段的数据全都转为大写 阅读全文
摘要:
Can not issue data manipulation statements with executeQuery() 无法使用executeQuery()发出数据操作语句。 原因是这句:st.executeQuery() ; 这句应该该成这样子:st.execute() ; package 阅读全文
摘要:
Field error in object 'student' on field 'date': rejected value [2021-08-12]; codes [typeMismatch.student.date,typeMismatch.date,typeMismatch.java.uti 阅读全文
摘要:
Subquery returns more than 1 row 子查询返回了多行数据 原因:子查询的时候返回了多条数据 报错代码: SELECT * FROM emp WHERE deptno = (SELECT deptno FROM dept WHERE loc = '苏州'); 解决方案一: 阅读全文