F
F
Flopikpl2017-01-21 17:18:21
MySQL
Flopikpl, 2017-01-21 17:18:21

how to find size of json array in mysql?

I need to find out the size of the JSON array in the trigger, but I don’t know how to find it out, I know that it’s possible like this

INSERT INTO new_table SET new_tablecol = NEW.content->'$[0]';

But how exactly do you know the size?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2017-01-21
@Flopikpl

JSON_LENGTH

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question