Select::FieldsGetExcept
Get all fields of the table, except one Sintaxe
namespace
ProtocolLive\PhpLiveDb;
final class Select{
public function
::FieldsGetExcept(
}
string|UnitEnum
$Field
):array|string;
string|UnitEnum $Table = null, FieldsGetReturn $Return = FieldsGetReturn::String, string $Alias = null 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 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 |
*/