Select::FieldsExcept

Union of methods Fields and FieldsGetExcept

Sintaxe

namespace ProtocolLive\PhpLiveDb;

/**

 */
final class Select{
public function FieldsExcept(
string|UnitEnum $Field,
string $Alias
):self;
}
Parameters

$Field - The field names;

$Alias - Table alias without dot;

See more

- Fields

- FieldsGetExcept

Examples

$consult = $Db->Select('users')
->FieldsExcept('email')
->Run();
//Table fields: user_id,name,email,active,lastlogin
//select user_id,name,active,lastlogin from users