SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
SELECT regexp_like('Редкая достопримечательность ', '[а-я]', 'c'); SET @json = '[{"x": [0,1], "y": "[0,1]", "z": "Monty"}, {"phone":"+7 984 542-59-63"}]'; SELECT JSON_EXTRACT(@json, '$[1].phone[0]'); SET @json2 = '{"array":[1,2,3],"boolean":true,"color":"gold","null":null,"number":123,"object":{"a":"b","c":"d"},"string":"Hello World"}'; SELECT JSON_EXTRACT(@json2, '$[0].object[0].a[0]'); SET @json2 = '{"employees":[{"firstName":"John","lastName":"Doe"},{"firstName":"Anna","lastName":"Smith"},{"firstName":"Peter","lastName":"Jones"}]}'; SELECT JSON_EXTRACT(@json2, '$[0].employees[0]');

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear