2021年3月13日

摘要: 5、order by --1、默认是升序 select * from match order by fundid --按照fundid升序排列 --2、desc是降序 select * from match order by fundid desc --按照fundid降序排列 -- 3、多个字段排 阅读全文
posted @ 2021-03-13 21:56 jesse_zhao 阅读(292) 评论(0) 推荐(0)
摘要: 4、null null不能参与算术运算,所以不能使用=null、<> null --is null select * from fundinfo where custname is null --查出字段custname 是null的数据 --is not null select * from fu 阅读全文
posted @ 2021-03-13 21:41 jesse_zhao 阅读(130) 评论(0) 推荐(0)
摘要: 1、distinct--过滤重复,保留不重复的数据 对非null字段去重 select distinct(fundid) from orderrec 只输出不重复的fundid 对可为null的字段去重 select distinct(addr) from fundinfo --如果addr中有nu 阅读全文
posted @ 2021-03-13 21:40 jesse_zhao 阅读(749) 评论(0) 推荐(0)
摘要: 列表推导式基本上用于对list、string数据进行处理,可以极大的简化代码 1)、将列表中的负数转为正数 #列表中有正数负数,将类表中的负数转为正数 1、传统的for循环 list_data =[1,2,-3] new_list =[] for i in list_data: new_list.a 阅读全文
posted @ 2021-03-13 13:16 jesse_zhao 阅读(314) 评论(0) 推荐(0)
摘要: 待补充 阅读全文
posted @ 2021-03-13 11:48 jesse_zhao 阅读(33) 评论(0) 推荐(0)
摘要: 待补充 阅读全文
posted @ 2021-03-13 11:47 jesse_zhao 阅读(28) 评论(0) 推荐(0)
摘要: 1)、函数的特性 函数作为变def test1(x): def test1(x): return x+1 a =test1(1) 函数作为参数(其他函数的入参) def test1(x): print(x+1) def test2(f): #其他的函数f作为入参 f(3) test2(test1) 阅读全文
posted @ 2021-03-13 11:37 jesse_zhao 阅读(65) 评论(0) 推荐(0)

导航