- 博客(6)
- 收藏
- 关注
原创 multiply()、setScale()
multiply()BigInteger n1,n2,n;n1 = new BigInteger(“6”);n2 = new BigInteger(“10”);n = n1.multiply(n2);// n = 6 * 10 =60其值是 (this * val)new BigDecimal(“2.224667”).setScale(2)保留两位小数,默认四舍五入。//2.22new BigDecimal(“2.224667”).setScale(2, BigDecimal.ROUND_
2020-12-10 14:49:08
3019
原创 oracle创建表时设置主键id为uuid
CREATE TABLE USER(ID VARCHAR(32) DEFAULT SYS_GUID() PRIMARY KEY,NAME VARCHAR2(20))
2020-11-30 14:58:55
1850
1
转载 TimeUnit
单位:TimeUnit.DAYS //天TimeUnit.HOURS //小时TimeUnit.MINUTES //分钟TimeUnit.SECONDS //秒TimeUnit.MILLISECONDS //毫秒转换:public long toMillis(long d) //转化成毫秒public long toSeconds(long d) //转化成秒public long toMinutes(long d) /
2020-11-27 10:12:47
169
原创 设置字符串位数,不足位数补0
System.out.println(String.format("%09d", Long.parseLong("1234"))); System.out.println(String.format("%09d", Long.parseLong("12345"))); System.out.println(String.format("%09d", Long.parseLong("123456")));
2020-06-20 19:54:06
1912
原创 Error:Android Dex: [001terminalPlatformPAAS] Unable to execute DX
Error:Android Dex: [001terminalPlatformPAAS] Unable to execute DX1、勾中选项后Apply2、.idea目录中的AndroidDexCompiler.xml文件,option的value必须是true改完之后Rebuild project,没有报错了
2020-06-20 19:53:26
192
原创 oracle整理
oracle整理¥¥ 查看已经创建好的表空间:select default_tablespace, temporary_tablespace, d.username from dba_users d ;¥¥ 创建表空间create tablespace db_test datafile ‘D:\oracle\product\10.2.0\userdata\db_test.dbf’ size 50m autoextend on;¥¥ 查看用户select * from dba_users;¥¥
2020-06-03 10:15:42
156
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人