摘要:
题目:有四个数字:1、2、3、4,能组成多少个互不相同且无重复数字的三位数?各是多少? Python 练习实例1 | 菜鸟教程 (runoob.com) 两年前的解法: for i in range(1,5): for j in range(1,5): for k in range(1,5): if 阅读全文
摘要:
only_full_group_by的作用是就是一个SQL语句合法性的检查。 含义:sql中select后面的字段必须出现在group by后面,或者被聚合函数包裹,不然会抛出上面的错误 如: select A,B,C,sum(E)from table group by A ; #报错 select 阅读全文
摘要:
法一: select count(distinct if(submit_time is not null, exam_id, null)) as complete_exam_cnt from exam_record 法二: SELECT count(distinct exam_id and scor 阅读全文