digital-garden/notes/Собеседования/Задачи/Задача 27.md
2024-06-13 21:01:37 +03:00

32 lines
482 B
Markdown

---
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
%%