摘要:
这里有两张表TableA和TableB,分别是姓名表和年龄表,用于我们例子的测试数据 TableA id name 1 t1 2 t2 4 t4 TableB id age 1 18 2 20 3 19 在开发中我们的业务需求有时候是复杂的,多张表联合查询的时候是有多种方式的,面对不同的需求, 灵活 阅读全文
posted @ 2020-06-09 15:37
红尘沙漏
阅读(476)
评论(0)
推荐(0)
摘要:
select * from 多张表的用法 其实就是 inner join select * from Class c,Student s where c.ClassID=s.ClassID select * from Class c inner join Student s on c.ClassID 阅读全文
posted @ 2020-06-09 15:25
红尘沙漏
阅读(9947)
评论(0)
推荐(1)
摘要:
public ResultBean getSpfl(Integer yyb) { ResultBean res = new ResultBean(); try { JSONArray data = new JSONArray(); String sql = "select * from tspfl_ 阅读全文
posted @ 2020-06-09 14:51
红尘沙漏
阅读(352)
评论(0)
推荐(0)
摘要:
1.JSONObject : json对象,就是一个键对应一个值,数据是用 { } 来表示的,例如:{”id”:1 , “username”:”wp”} JSONArray: json数组,数据是是由JSONObject构成的数组,用 [ { } , { } , ...... , { } ] 来表示 阅读全文
posted @ 2020-06-09 13:45
红尘沙漏
阅读(3068)
评论(0)
推荐(0)

浙公网安备 33010602011771号