摘要: 经过测试,mysql游标是无法读取自定义函数计算的结构,mysql自带的函数计算值是可以读取的。 阅读全文
posted @ 2014-04-12 19:44 和硕亲王 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 1 StringBuilder stringBuilder = new StringBuilder("["); 2 String ssString; 3 ArrayList ccs =competitionMapper.getCmptList(hashMap); 4 5 for (CompetitionsByCity tmp:ccs) 6 { 7 8 stringBuilder.append("{\"cmptId\":"+"\""+tmp.getCmptId()+"\""+& 阅读全文
posted @ 2014-04-11 15:48 和硕亲王 阅读(830) 评论(0) 推荐(0) 编辑
摘要: 1 2 4 5 6 7 21 22 33 34 57 View Code其中设计到order by的使用和排序 阅读全文
posted @ 2014-04-11 13:24 和硕亲王 阅读(375) 评论(0) 推荐(0) 编辑
摘要: 推荐文章:http://www.iteye.com/topic/1132302http://yhjhappy234.blog.163.com/blog/static/316328322012455714892/http://www.iteye.com/problems/85525http://www.blogjava.net/zljpp/archive/2012/04/15/374383.html这里写的是后台数据库使用Mysql,存储过程定义: 1 PROCEDURE deyestest.procedure1(OUT json VARCHAR(2000)) 2 BEGIN DECLARE v 阅读全文
posted @ 2014-04-08 10:25 和硕亲王 阅读(483) 评论(0) 推荐(0) 编辑
摘要: CREATE DEFINER = 'root'@'%'PROCEDURE deyestest.procedure2()BEGIN DECLARE v_id INT; DECLARE v_userName VARCHAR(155); DECLARE v_mobileNum VARCHAR(55); DECLARE v_tmp VARCHAR(1000); DECLARE v_info VARCHAR(2000); DECLARE v_info2 VARCHAR(2000); DECLARE v_int INT; DECL... 阅读全文
posted @ 2014-04-04 17:13 和硕亲王 阅读(2912) 评论(0) 推荐(2) 编辑