Table 1
Table 2
I want this kind of output needed in Format
+
My Current Query this
SELECT *, (SELECT id FROM tb1 where id = 1) as data_json FROM `tb5`
i want get table tb1 whole data in one column like that
id | col1 | col2 | col3 | col4 | data_json
1 | ab | ab | uo | ty | [{'col1':1, 'col2':'ok', 'col3':'yy'},{'col1':1, 'col2':'ok', 'col3':'yy'}...]
how to change logical here tell me
how can get here whole json data from tb5 i don't want use join and specific column mention want whole tb5
help me .....!
we will need these
json
functions to transform your data.