Skip to main content

Syntax

Parameters

Examples

Let’s create two tables, customers and orders.
If you want to speed up the query of fetching a customer record by the phone number, you can build an index on the c_phone column in the customers table.
If you want to speed up the query of fetching all the orders of a customer by the customer key, you can build an index on the o_custkey column in the orders table.
RisingWave supports creating indexes on expressions. For more details, see Indexes on expressions.