摘要: Table: Teams + + +| Column Name | Type |+ + +| team_id | int || team_name | varchar |+ + +team_id is the primary key of this table.Each row of this ta 阅读全文
posted @ 2019-11-20 23:51 lihui1625 阅读(208) 评论(0) 推荐(0) 编辑
摘要: SQL架构 Transactions 记录表 + + + | Column Name | Type | + + + | id | int | | country | varchar | | state | enum | | amount | int | | trans_date | date | + 阅读全文
posted @ 2019-11-20 23:50 lihui1625 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 书籍表 Books: + + +| Column Name | Type |+ + +| book_id | int || name | varchar || available_from | date |+ + +book_id 是这个表的主键。订单表 Orders: + + +| Column 阅读全文
posted @ 2019-11-20 23:49 lihui1625 阅读(225) 评论(0) 推荐(0) 编辑
摘要: Table: Queue + + +| Column Name | Type |+ + +| person_id | int || person_name | varchar || weight | int || turn | int |+ + +person_id is the primary k 阅读全文
posted @ 2019-11-20 23:47 lihui1625 阅读(441) 评论(0) 推荐(0) 编辑
摘要: Employee 表保存了一年内的薪水信息。 请你编写 SQL 语句,来查询一个员工三个月内的累计薪水,但是不包括最近一个月的薪水。 结果请按 'Id' 升序,然后按 'Month' 降序显示。 示例:输入: | Id | Month | Salary || | | || 1 | 1 | 20 || 阅读全文
posted @ 2019-11-20 23:46 lihui1625 阅读(590) 评论(0) 推荐(0) 编辑
摘要: Table: Spending + + +| Column Name | Type |+ + +| user_id | int || spend_date | date || platform | enum | | amount | int |+ + +The table logs the spen 阅读全文
posted @ 2019-11-20 23:45 lihui1625 阅读(204) 评论(0) 推荐(0) 编辑
摘要: SQL架构 Table: Failed + + + | Column Name | Type | + + + | fail_date | date | + + + 该表主键为 fail_date。 该表包含失败任务的天数. Table: Succeeded + + + | Column Name | 阅读全文
posted @ 2019-11-20 23:44 lihui1625 阅读(418) 评论(0) 推荐(0) 编辑
摘要: SQL架构 Players 玩家表 + + + | Column Name | Type | + + + | player_id | int | | group_id | int | + + + 玩家 ID 是此表的主键。 此表的每一行表示每个玩家的组。 Matches 赛事表 + + + | Co 阅读全文
posted @ 2019-11-20 23:43 lihui1625 阅读(416) 评论(0) 推荐(0) 编辑
摘要: SQL架构 Activity 活动记录表 + + + | Column Name | Type | + + + | player_id | int | | device_id | int | | event_date | date | | games_played | int | + + + (pl 阅读全文
posted @ 2019-11-20 23:42 lihui1625 阅读(245) 评论(0) 推荐(0) 编辑
摘要: SQL架构 一所美国大学有来自亚洲、欧洲和美洲的学生,他们的地理信息存放在如下 student 表中。 | name | continent | | | | | Jack | America | | Pascal | Europe | | Xi | Asia | | Jane | America | 阅读全文
posted @ 2019-11-20 23:41 lihui1625 阅读(309) 评论(0) 推荐(0) 编辑
摘要: SQL架构 Numbers 表保存数字的值及其频率。 + + + | Number | Frequency | + + | | 0 | 7 | | 1 | 1 | | 2 | 3 | | 3 | 1 | + + + 在此表中,数字为 0, 0, 0, 0, 0, 0, 0, 1, 2, 2, 2, 阅读全文
posted @ 2019-11-20 23:40 lihui1625 阅读(918) 评论(0) 推荐(0) 编辑
摘要: SQL架构 Employee 表包含所有员工。Employee 表有三列:员工Id,公司名和薪水。 + + + + |Id | Company | Salary | + + + + |1 | A | 2341 | |2 | A | 341 | |3 | A | 15 | |4 | A | 15314 阅读全文
posted @ 2019-11-20 23:39 lihui1625 阅读(930) 评论(0) 推荐(0) 编辑
摘要: 实现一个拥有如下方法的线程安全有限阻塞队列: BoundedBlockingQueue(int capacity) 构造方法初始化队列,其中capacity代表队列长度上限。void enqueue(int element) 在队首增加一个element. 如果队列满,调用线程被阻塞直到队列非满。i 阅读全文
posted @ 2019-11-20 23:35 lihui1625 阅读(1220) 评论(0) 推荐(1) 编辑
摘要: 给你一个初始地址 startUrl 和一个 HTML 解析器接口 HtmlParser,请你实现一个 多线程的网页爬虫,用于获取与 startUrl 有 相同主机名 的所有链接。 以 任意 顺序返回爬虫获取的路径。 爬虫应该遵循: 从 startUrl 开始调用 HtmlParser.getUrls 阅读全文
posted @ 2019-11-20 23:34 lihui1625 阅读(1333) 评论(0) 推荐(0) 编辑