N
N
nikesport2014-11-11 13:30:02
MySQL
nikesport, 2014-11-11 13:30:02

What data format in sql is needed to store json in its entirety?

What data format in sql is needed to store json in its entirety?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry Entelis, 2014-11-11
@DmitriyEntelis

text, longtext, blob
UPD This is if you agree with the restriction that you read and overwrite this json in its entirety.
If you want to work with it as a data structure, you will either have to use, for example, postgresql where there is actually a json data type, or some nosql solutions.

U
ugodrus, 2014-11-11
@ugodrus

First, is it really necessary to store Json?
Secondly, what is supposed to be done with this data set.
Well, accordingly, Json is a machine-readable data format and, accordingly, it is better to shove it into a BLOB (binary storage).

@
@mgyk, 2014-11-11
_

You can look at non-jsonb in postgresql www.postgresql.org/docs/9.4/static/datatype-json.html if you need to index json fields

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question