Select::FieldsGetExcept

Get all fields of the table, except one

Sintaxe

namespace ProtocolLive\PhpLiveDb;

/**

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

$Field - Field name 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

- FieldsGetReturn

Examples

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