Im simply trying to insert json data into a dynamic column.
Data looks like follows:
"{"Fields": {
"CompanyCode": "1",
"FiscalYear": "2014",
"CalYear": "2014",
"CalPeriod": "1",
"MinPostDate": "2014-01-14T00:00:00",
"MaxPostDate": "2014-01-14T00:00:00",
"CreditDebitInd": "H"
}
}"
Query is like this:
INSERT INTO jsontest (ID, Text) VALUES(DEFAULT, 'JsonHere');
ID is an ID which is the PK and it auto increments. Text is a BLOB
For INSERT, REPLACE, and UPDATE, if a generated column is inserted into, replaced, or updated explicitly, the only permitted value is DEFAULT.. See 13.1.18 CREATE TABLE Syntax :: CREATE TABLE and Generated Columns.