Answer the question
In order to leave comments, you need to log in
Create JSON index for mysql 8?
there is an employees field of type JSON in the following format: [
{
"id": 1,
"name": "Garina Irina Petrovna"
},
{
"id": 2,
"name": "Ivanov Ivan Ivanovich"
}
]
How to add an index to table, by ID?
Tried something like:
CREATE INDEX id_employees_index ON visits employees->>'$.id' AS INT
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question