介绍
在这个挑战中,你将扮演数据库管理员的角色,管理 PostgreSQL 数据库中的员工数据。任务包括使用 PostgreSQL 命令更新 employees
表中的员工记录,以反映组织中的变化。
你需要使用命令行界面连接到 PostgreSQL 数据库,并执行 SQL 命令将新员工 Diana Prince 插入到 'Security' 部门,并将 Bob Johnson 的部门更新为 'Management'。将为你提供初始表结构和一些示例数据以供使用。
Skills Graph
%%%%{init: {'theme':'neutral'}}%%%%
flowchart RL
postgresql(("PostgreSQL")) -.-> postgresql/PostgreSQLGroup(["PostgreSQL"])
postgresql/PostgreSQLGroup -.-> postgresql/row_add("Insert One Row")
postgresql/PostgreSQLGroup -.-> postgresql/row_edit("Update Single Row")
subgraph Lab Skills
postgresql/row_add -.-> lab-551130{{"在 PostgreSQL 中管理员工数据"}}
postgresql/row_edit -.-> lab-551130{{"在 PostgreSQL 中管理员工数据"}}
end