Select::FieldsGetExcept

Get all fields of the table, except one

Sintaxe

namespace ProtocolLive\PhpLiveDb;

/**
 * @param string|UnitEnum|string[]|UnitEnum[] $Fields

 */
final class Select{
public function ::FieldsGetExcept(
string|UnitEnum|array $Fields
string|UnitEnum $Table = null,
FieldsGetReturn $Return = FieldsGetReturn::String,
string $Alias = null
):array|string;
}
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