January 2018
Intermediate to advanced
446 pages
12h 57m
English
mysql> SHOW CREATE TABLE emp_details\G*************************** 1. row *************************** Table: emp_detailsCreate Table: CREATE TABLE `emp_details` ( `emp_no` int(11) NOT NULL, `details` json DEFAULT NULL, PRIMARY KEY (`emp_no`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb41 row in set (0.00 sec)
mysql> INSERT IGNORE INTO emp_details(emp_no, details) VALUES ('1', '{ "location": "IN", "phone": "+11800000000", "email": "abc@example.com", "address": { "line1": "abc", "line2": "xyz street", "city": "Bangalore", "pin": "560103"}}'), ('2', '{ "location": "IN", "phone": "+11800000000", "email": ...