一道 sql 面试题

假设有以下 3 张表 create table course ( `id` integer primary key, `name` text not null ); create table student ( `id` integer primary key, `name` text not null ); create table score ( `id` integer primary key, `course_id` integer not null, `student_id` integer not null, `score` integer not null ); 初始化以下数据 -- insert insert into course values (1, &...

周六 · 2024-08-31 · 2 分钟 · Yuechen

Git 手册

实际工作中的常见情况 git rebase git rebase 的文档描述是 Reapply commits on top of another base tip,从字面上理解是「在另一个基端之上重新应用提交」,这个定义听起来有点抽象。 换个角...

周五 · 2024-08-30 · 44 分钟 · Yuechen

浅谈一些 UT 测试框架

前言 为什么要使用 mock? Mock 可以理解为创建一个虚假的对象,或者说模拟出一个对象,在测试环境中用来替换掉真实的对象,以达到我们可以: 验证该对象...

周四 · 2024-08-29 · 5 分钟 · Yuechen

谈谈为何重建了个人站

最近又回头思考了一下自己建站的初衷,其实说到底,无非是想追求三个点:速度、易用性、便携性。 以前用的是 Wiki.js,当时觉得基于 Node.j...

周二 · 2024-08-27 · 2 分钟 · Yuechen

笔记迁移安排

由于阿里云各种服务即将到期,以及个人工作跨境调动等因素,需要将部署在阿里云上的个人博客备份并迁移至海外服务器。 服务器 GitHub Pages - 首选但需要写一篇部...

周一 · 2024-08-26 · 1 分钟 · Yuechen