sql驼峰转换
select table_name, LOWER(SUBSTR(column_name, 1, 1)) || REPLACE(SUBSTR(INITCAP(column_name), 2),'_','') ,comments
from user_col_comments where table_name='这里是表名' ;
本文介绍了一个SQL查询,展示了如何使用函数如LOWER,SUBSTR,REPLACE和INITCAP将表中的column_name列名按照驼峰式命名规则进行转换,以这里是表名为例。
sql驼峰转换
select table_name, LOWER(SUBSTR(column_name, 1, 1)) || REPLACE(SUBSTR(INITCAP(column_name), 2),'_','') ,comments
from user_col_comments where table_name='这里是表名' ;

被折叠的 条评论
为什么被折叠?
