import com.alibaba.fastjson.JSONObject; /** * Created by SYJ on 2017/9/13. */ public class MainTest { public static void main(String[] args) { String json = "{\"code\":0,\"message\":\"没有查询到数据\",\"data\":null,\&…
一.测试数据准备 List<Map<String, String>> result = new ArrayList();Map<String, String> map = new HashMap<>();map.put("san", "张三");map.put("si", "李四");map.put("wu", "王五");map.put(…
http://jsfiddle.net/sxGtM/3/http://stackoverflow.com/questions/1184624/convert-form-data-to-js-object-with-jquery /*把表单转成json,并且name为key,value为值*/ $.fn.serializeObject = function() { var o = {}; var a = this.serializeArray(); $.each(a, function() { i…
为了性能考虑,在阅读之前提醒大家,如果有子查询,子查询查询到的数据最好不要超过总数据量的30%. 查询有重复数据的记录 select * from F group by a,b,c,d having count(*)>1 select distinct * into #Tmp from tableName drop table tableName select * into tableName from #Tmp drop table #Tmp SQL删除重复数据方法 例如: id name…