摘要:
1 //查询所有品牌为“大众”的车型 2 select * from t_car where version like '大众%' 3 4 //查询座位数不低于5座的车型 5 select version,seat from t_car where seat >= 5 6 7 //查询手动档中排量大 阅读全文
摘要:
val a = List(1,2,3,4); //遍历循环 for(i <- a) print(i) for(i <- 0 to a.length-1) println(a(i)) for(i <- 0 until a.length) print(a(i)) //foreach迭代打印 a.fore 阅读全文