在mysql查询中如何将MyTableName等文本转换为MY_TABLE_NAME
答案 0 :(得分:0)
你可以这样做:
SELECT DISTINCT m.name || '.' || ii.name AS 'indexed-columns'
FROM sqlite_master AS m,
pragma_index_list(m.name) AS il,
pragma_index_info(il.name) AS ii
WHERE m.type = 'table'
ORDER BY 1;