02 2022 档案
摘要:public static <T> List<T> castList(Object obj, Class<T> clazz) { List<T> result = new ArrayList<T>(); if(obj instanceof List<?>) { for (Object o : (Li
阅读全文
摘要:select TABLE_NAME from information_schema.tables where table_schema = 'test003';
阅读全文
摘要:默认配置文件 generatorConfig.xml 修改配置文件 generatorConfig-test.xml 工程由maven管理,编辑maven命令即可 -Dmybatis.generator.configurationFile=src/main/resources/generatorCo
阅读全文
摘要:select * from information_schema.innodb_trx;
阅读全文
摘要:背景:职员表emp (emp_no,emp_name,dept_no);部门表dept (dept_no,dept_name) 需求:查找职员表中涉及到的部门 distinct SELECT DISTINCT dept.dept_no, dept.dept_name FROM emp, dept W
阅读全文
摘要:创建用户myuser并赋予dev数据库权限 create user myuser@'%' identified by 'root'; grant all privileges on dev.* to 'myuser'@'%'; flush privileges; 创建权限/回收权限 grant al
阅读全文
摘要:https://www.jianshu.com/p/cd3a7b196ab3
阅读全文

浙公网安备 33010602011771号