摘要: java实现: 1 public class Sleep { 2 public static void main(String args[]) { 3 try { 4 System.out.println(new Date( ) + "\n"); 5 Thread.sleep(1000*5); // 阅读全文
posted @ 2020-06-29 11:41 老孙家人 阅读(450) 评论(0) 推荐(0)
摘要: 查看wmic process where caption="java.exe" get processid,caption,commandline /value 删除taskkill /pid 进程id /F 阅读全文
posted @ 2020-06-15 19:08 老孙家人 阅读(741) 评论(0) 推荐(0)
摘要: select 'alter table '||table_name||' allocate extent;' from user_tables where segment_created='NO' 执行上方查询出来的alter语句即可 阅读全文
posted @ 2020-05-26 10:25 老孙家人 阅读(136) 评论(0) 推荐(0)
摘要: mysql; SELECT table_name, concat( round((DATA_LENGTH / 1024 / 1024), 2), 'M' ) AS size, table_rows FROM information_schema. TABLES ORDER BY table_rows 阅读全文
posted @ 2020-05-07 08:57 老孙家人 阅读(275) 评论(0) 推荐(0)
摘要: exp 用户名/密码@orcl owner=用户名 file=E:\123.dmp imp 用户名/密码@orcl fromuser=来自的数据库用户名 touser=导入的数据库用户名 file=E:\export\test.dmp ignore=y 阅读全文
posted @ 2020-04-09 16:39 老孙家人 阅读(573) 评论(0) 推荐(0)
摘要: /** * 读取 .properties 配置文件 * @param propertiesUrl 配置文件的路径 * @return 配置文件中的key-value值 */ public static Map<String, String> getProperties(String properti 阅读全文
posted @ 2020-03-19 20:44 老孙家人 阅读(1108) 评论(0) 推荐(1)
摘要: public static void getWeekMonthYear(){ Map<String, Integer> mapInt = new LinkedHashMap<String, Integer>(); Calendar calendar = Calendar.getInstance(); 阅读全文
posted @ 2020-03-19 20:38 老孙家人 阅读(7470) 评论(0) 推荐(0)
摘要: 1 public static void A(String pythonPath, String pyPath){ 2 Process proc; 3 String[] arg = new String[] { "python3", "后缀为.py的文件", "参数1", "参数2", "参数3" 阅读全文
posted @ 2020-03-19 20:26 老孙家人 阅读(699) 评论(0) 推荐(0)
摘要: setSqlSelect 设置 SELECT 查询字段 where WHERE 语句,拼接 + WHERE 条件 and AND 语句,拼接 + AND 字段=值 and New AND 语句,拼接 + AND (字段=值) or OR 语句,拼接 + OR 字段=值 orNew OR 语句,拼接 阅读全文
posted @ 2020-03-17 23:04 老孙家人 阅读(5748) 评论(0) 推荐(0)
摘要: JSONObject所必需的6个jar包(提供网盘下载): commons-beanutils-1.7.0.jarcommons-collections-3.1.jarcommons-lang-2.5.jarcommons-logging.jarezmorph-1.0.3.jarjson-lib-2 阅读全文
posted @ 2019-11-25 19:46 老孙家人 阅读(1637) 评论(0) 推荐(0)