Select::FieldsGetExcept

Get all fields of the table, except one

Internally the method Select::FieldsAdd is called

Sintaxe

namespace ProtocolLive\PhpLiveDb;

/**

 */
final class Select{
public function ::FieldsGetExcept(
string|UnitEnum|string[]|UnitEnum[] $Fields
string|UnitEnum $Table = null,
FieldsGetReturn $Return = FieldsGetReturn::String,
string $Alias = null
):array|string|Select;
}
Parameters

$Fields - Field or fields names to exclude from list;

$Table - Use a different table then select in Select;

$Return - Return type;

$Alias - Concatenate the alias with every field name;

See more

- FieldsGet

Examples

$consult = $Db->Select('users');
echo $consult->FieldsGet();
//user_id,user,email,pwd,created,lastlogin
echo $consult->FieldsGetExcept('email');
//user_id,user,pwd,created,lastlogin