482 B
482 B
parents | |
---|---|
|
CREATE INDEX idx_example ON table_name (column1, column2);
1:
SELECT * FROM table_name WHERE column2 = 'value2';
2:
SELECT * FROM table_name WHERE column1 = 'value1' AND column2 = 'value2';
3:
SELECT * FROM table_name WHERE column1 = 'value1';
4:
SELECT * FROM table_name WHERE column2 = 'value2' AND column1 = 'value1';
%% 2, 3, 4, 1 %%