首页 > 数据库技术 > 详细

对json数据进行类似sql查询

时间:2016-02-19 18:50:14      阅读:186      评论:0      收藏:0      [点我收藏+]

添加js引用:jsonsql-0.1.js

通过下面列子得到一个json类型的结果

Example:

jsonsql.query("select * from json.channel.items order by title desc",json);
jsonsql.query("select title,url from json.channel.items where (category==‘javascript‘ || category==‘vista‘) order by title,category asc limit 3",json); 
jsonsql.query("select * from json where (CKey==‘DropDownList_Data_End‘ && CValue==‘2014‘)", obj.data);

 

对json数据进行类似sql查询

原文:http://www.cnblogs.com/shenyixin/p/5201715.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!