09 2018 档案
摘要:--1 例子postgres=# select 1/4; ?column? 0(1 row) 在PG里如果想做除法并想保留小数,用上面的方法却行不通,因为"/" 运算结果为取整,并且会截掉小数部分。 --2 类型转换postgres=# select round(1::numeric/4::nume
阅读全文
摘要:思路:js通过FileReader获取图片的Base64,Java解码用IO存到本地。 HTML 代码 JavaScript Java
阅读全文
摘要:按照日期范围查询有好几种方法,日期字段类型一般为: Timestamp without timezone 方法一: select * from user_info where create_date select * from user_info where create_date >= '2015
阅读全文