实现添加员工时对工号进行自增长 思路:后台获取数据库中最后一条员工数据的工号,对其进行自增再传入前端 mybatis映射文件:获取最后一条数据 <select id="getLastNo" resultType="string"> SELECT no from t_staff ORDER BY no DESC LIMIT 0,1 </select> 后台controller层对获取的no进行自增 @RequestMapping("/…
oracle得到的两个字段进行相加,要求都是number类型的,如果两个是字符串会自动转成number类型(前提是能够转) select a+b from (select '1' a,'2' b from z_user) 对的,输出3 select a+b from (select '1a' a,'2' b from z_user) 错的,无法相加 select a||b from (select '1a' a,'2' b from z_user)对的,输出1a2…
Compare two version numbers version1 and version2.If version1 > version2 return 1, if version1 < version2 return -1, otherwise return 0. You may assume that the version strings are non-empty and contain only digits and the . character.The . characte…