---
parents:
  - "[[Вопросы для собеседование Java]]"
---
```sql
CREATE INDEX idx_example ON table_name (column1, column2);
```

***
1:
```sql
SELECT * FROM table_name WHERE column2 = 'value2';
```

2:
```sql
SELECT * FROM table_name WHERE column1 = 'value1' AND column2 = 'value2';
```

3:
```sql
SELECT * FROM table_name WHERE column1 = 'value1';
```

4:
```sql
SELECT * FROM table_name WHERE column2 = 'value2' AND column1 = 'value1';
```

%%
2, 3, 4, 1
%%