摘要:
def 函数名称(参数列表):函数返回值类型={函数体} def looper(x: Long, y: Long): Long = { var a = x var b = y while (a != 0) { val temp = a a = b % a b = temp } //返回值 b } 若 阅读全文
摘要:
按从 Z 到 A 的顺序显示结果 字符串默认就是按字典顺序 Z 到 A 的排序:order by cust_name desc 先按XX排序,再按XX排序 先按顾客 ID 对结果进行排序,再按订单日期倒序排列。直接在order by中写多个字段即可。 select cust_id,order_num 阅读全文