07 2022 档案
摘要:MySQL清空数据库的操作:truncate table tablename; MySQL 赋予用户权限命令的简单格式可概括为:grant 权限 on 数据库对象 to 用户 一、grant 普通数据用户,查询、插入、更新、删除 数据库中所有表数据的权利。 grant select on testd
阅读全文
摘要:1、Collections.sort() //升序排列 Collections.sort(list, new Comparator<Student>() { public int compare(Student s1, Student s2) { return s1.getAge().compare
阅读全文
摘要:最近做项目,从其他数据库导入的数据太多,为了方便查询是否有重复的数据列,可以使用以下的sql语句查询 SELECT title, COUNT( title) FROM mytable GROUP BY title HAVING COUNT( title) > 1 说明:title是字段,mytabl
阅读全文