摘要: DateTimeFormatter dateTimeFormatter1 = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");DateTimeFormatter dateTimeFormatter2 = DateTimeFormatter.ofP 阅读全文
posted @ 2022-09-14 15:17 苏道羲 阅读(641) 评论(0) 推荐(0) 编辑
摘要: idea开发的时候,Math.ceil(Integer.parseInt(num)/1000)发现有黄线,出现了‘integer division in floating-point context’提示。 写一个main方法发现Math.ceil(4800/1000)结果居然是4.0,查了一下:两 阅读全文
posted @ 2022-09-13 15:59 苏道羲 阅读(5735) 评论(0) 推荐(0) 编辑
摘要: 一、本节要点 1.获取临时素材接口 请求方式:GET(HTTPS) 请求地址:https://qyapi.weixin.qq.com/cgi-bin/media/get?access_token=ACCESS_TOKEN&media_id=MEDIA_ID 2.获取临时素材接口的返回结果 企业微信官 阅读全文
posted @ 2022-08-19 09:07 苏道羲 阅读(307) 评论(0) 推荐(0) 编辑
摘要: 使用的|,&·做分隔符的时候,没办法避免用户输入的字符有没有这些特殊符号 0x01,0x02作为保留字符,没办法键盘输入 char c='0x01'; String s=String.valueOf(c); 注意,使用的时候一定要变字符串再使用 阅读全文
posted @ 2022-08-02 17:09 苏道羲 阅读(819) 评论(0) 推荐(0) 编辑
摘要: oracle有一个方法,可以同时插入或更新数据,代码格式如下: MERGE INTO [your table-name] [rename your table here] USING ( [write your query here] )[rename your query-sql and usin 阅读全文
posted @ 2022-06-22 15:14 苏道羲 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 在使用Oracle数据库更新数据的时候,有两种查询方式可以修改编辑数据: select t.*,t.rowid from table t select * from table for update 在使用第二种方式的时候如果卡住或意外退出,会导致这个表锁住,之后无法被修改。 使用以下方法处理锁表 阅读全文
posted @ 2022-05-24 15:13 苏道羲 阅读(1946) 评论(0) 推荐(0) 编辑
摘要: 记录一个之前没用过的方法,可以在联级查询的时候查询查询根节点及其所有子节点。 代码简化为: select ... from tablename start with col='' connect by prior col=parent_col where ...; start with以col字段为 阅读全文
posted @ 2022-05-23 15:23 苏道羲 阅读(59) 评论(0) 推荐(0) 编辑
摘要: CONCAT,字符串拼接: SQL> SELECT CONCAT('FIRST ', 'SECOND'); + + | CONCAT('FIRST ', 'SECOND') | + + | FIRST SECOND | + + 1 row in set (0.00 sec) MySQL中concat 阅读全文
posted @ 2020-07-06 23:23 苏道羲 阅读(235) 评论(0) 推荐(0) 编辑
摘要: HTTP协议 URL http是一个属于应用层的协议,特点是简洁、快速。 schema://host[:port]/path[?query-string][#anchor] schema 指定低层使用的协议(例如:http,https,ftp) host 服务器的ip地址或者域名 port 服务器端 阅读全文
posted @ 2020-06-19 19:52 苏道羲 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 下载git,官网或者https://npm.taobao.org/mirrors/git-for-windows/。下载exe文件,一路next到底。可在开始菜单输入git查询git bash,用命令行使用。或者下载sourcetree,可视化GUI。需要注册登录,登录不成功只能多试几次,或者找网上 阅读全文
posted @ 2020-06-14 21:24 苏道羲 阅读(111) 评论(0) 推荐(0) 编辑