結合条件は満たしているにもかかわらず、LEFT JOIN を INNER JOIN に変更すると結果が0件になります。
原因に詳しい方がいましたら、ぜひご意見をいただけないでしょうか。
該当のMySQLクエリ
select table_name, column_name, column_default, enum_values from information_schema.columns join lateral ( select concat('[', replace(regexp_substr(column_type, "'.*'"), "'", '"'), ']') ) a(a) on true left join lateral ( select a from json_table( a.a, '$[*]' columns (a text path '$') ) a ) b(enum_values) on true where table_schema = database() and data_type = 'enum';

回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。