shell
dogndaxiaodong
东北大学软件学院大二学生
展开
-
leetcode-至少合作三次的导演和演员
# Write your MySQL query statement below select ACTOR_ID,DIRECTOR_ID from ActorDirector group by actor_id,director_id having count(director_id)>=3 可以看出sql允许通过多个字段进行group by。 筛选null值可以通过 is not ...原创 2019-12-26 21:31:49 · 110 阅读 · 0 评论 -
leetcode-第十行
# Read from the file file.txt and output the tenth line to stdout. awk 'NR==10{print}' file.txt 这道题需要我们编写bash脚本输出文本文件中的第十行 我们使用awk这一编程语言 NR意思是number of record。根据分隔符判断number。默认的分隔符是换行符 在awk中单引号' ...原创 2019-12-25 21:40:29 · 130 阅读 · 0 评论