摘要: //MySql数据库的分页查询sql SELECT * from 表名 LIMIT 1,2 //Oracle数据库的分页查询sql语句 select * from ( select t.*, rownum RN from 表名 ) where RN > 0 and RN <= 15 阅读全文
posted @ 2018-02-26 10:28 lszan 阅读(1373) 评论(1) 推荐(0) 编辑
摘要: //使用concat进行字符串拼接前缀% 和后缀%,实现模糊查询,会解决sqL注入的问题 like CONCAT('%',#{stockCode},'%') 阅读全文
posted @ 2018-02-26 10:24 lszan 阅读(4272) 评论(0) 推荐(1) 编辑
摘要: CASE p.sharesNature WHEN 0 THEN '限售' WHEN 1 THEN '流通' ELSE '未知' END 阅读全文
posted @ 2018-02-26 08:45 lszan 阅读(31173) 评论(0) 推荐(0) 编辑
摘要: package com.yt.project.stockpledge.schedule; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.ste... 阅读全文
posted @ 2018-02-26 08:39 lszan 阅读(203) 评论(0) 推荐(0) 编辑
摘要: package com.ytgf.mobilestock.controller; public class Test { public static void main(String[] args) { // 首先是定义字符串的长度 String str="008"; //将字符串转换为int类型 int s=I... 阅读全文
posted @ 2018-02-26 08:34 lszan 阅读(2383) 评论(0) 推荐(0) 编辑