re hello ... parti trop vite ...

donc ici :

update schools set ent6=0;


pas taper ...

Maurice a écrit :
> Bonjour,
>
> Je voudrais réinitialiser (mettre à 0) un champ small integer (ent6)
> d'une table (schools).
>
> ALTER TABLE "schools" ALTER COLUMN "ent6" SET "0"      produit
> Unexpected token: 0 in statement [ALTER TABLE "schools" ALTER COLUMN
> "sol" SET "0"]
> idem si je remplace "0" par 0
>
> ALTER TABLE "schools" ALTER COLUMN "ent6" SET DEFAULT    produit
>  Wrong data type or data too long in DEFAULT clause:  in statement
> [ALTER TABLE "schools" ALTER COLUMN "sol" SET DEFAULT]
> que je mette à ou rien comme valeur par défaut.
>
> Où est mon erreur SVP ?
>
> Cordialement,    Maurice
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>


-- 
- -------------------------------------Powered-by----------------------
Yves-Jean Benigni                 |    / /    (_)____   __  __ _  __
Administrateur Systèmes&Réseaux   |   / /    / // __ \ / / / /| |/ /
Site : www.Benigni.org            |  / /___ / // / / // /_/ /  >  <
E.Mail: [email protected]     | /_____//_//_/ /_//_____/  /_/\_\
- ----------------------------------------------------------inside-----
      << Si tu ne sais pas, demande. Mais si tu sais, partage. >>
                          Registered Linux user #343201
                        Machine has registration #233291


Attachment: signature.asc
Description: OpenPGP digital signature

Répondre à