Underscores or camelCase in PostgreSQL identifiers, when the programming language uses camelCase?

后端 未结 3 1697
悲&欢浪女
悲&欢浪女 2021-02-01 12:02

This has been bothering me for a while, and I can\'t arrive at a solution that feels right...

Given an OO language in which the usual naming convention for object

3条回答
  •  温柔的废话
    2021-02-01 12:38

    If your columns in the PostgreSQL are with underscores, you can put aliases but with doule-quotes.

    Example :

    SELECT my_column as "myColumn" from table;
    

提交回复
热议问题