Why is ORM considered good but “select *” considered bad?

后端 未结 12 1668
误落风尘
误落风尘 2021-01-29 23:25

Doesn\'t an ORM usually involve doing something like a select *?

If I have a table, MyThing, with column A, B, C, D, etc, then there typically would be an object, MyThin

12条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-30 00:15

    SELECT * is not bad. Did you ask whoever considered it to be bad "why?".

提交回复
热议问题