📅  最后修改于: 2022-03-11 14:53:41.895000             🧑  作者: Mango
$myTable = MyTable->select('firstField');
if ($somethingTrue) {
$myTable->addSelect('secondField');
}
if ($somethingElseTrue) {
$myTable->addSelect('thirdField');
}
$myTable->get();