SQL 道场

SQL WORKBENCH

M6 · 难度 3

加一个有用的索引

Browser Postgres · Judge enabled

Prompt

为加速"按客户查订单",给 orders 的 customer_id 建一个名为 idx_orders_cust 的索引。

SQL Editor

Write, run, inspect, repeat.