- 博客(2)
- 收藏
- 关注
原创 java枚举,获取枚举值
创建枚举 public enum RefundTypeEnum { /** * 值类型 */ ONLY_REFUND("1", "仅退款"), REFUNDS("2", "退货退款"); /** * 数据库存放编码 */ private String code; /** * 描述 */ private String desc; /** * 根据code返回枚举值
2021-03-17 14:12:50
3192
原创 mysql对char类型的id取最大值
sql语句: select max(cast(id as SIGNED)) from table; 可返回Integer或者int: select max(cast(id as SIGNED Integer)) from table; select max(cast(id as SIGNED int)) from table;
2021-03-16 16:15:57
510
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人