-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hallo,

ich habe in einer Tabelle eine Spalte mit dem Datentyp text, das ich nach
bytea wandeln möchte (um später auch \000 speichern zu können).

Direkt scheint ein Alter Table da nicht zu gehen, also lege ich eine
temporäre Spalte an.

Nur: 

 > UPDATE forum_gtree SET gid2=gid::bytea;
 ERROR:  Cannot cast type text to bytea


Wie kann ich einen Text nach Bytea umwandeln?
Umgekehrt scheint es mit encode/decode zu gehen ...

  http://www.postgresql.org/docs/current/interactive/functions-string.html


Dank && Ciao
  Alvar

- -- 
** Alvar C.H. Freude -- http://alvar.a-blast.org/
**   Berufsverbot? http://odem.org/aktuelles/staatsanwalt.de.html
**   ODEM.org-Tour: http://tour.odem.org/
**   Informationsgesellschaft: http://www.wsis-koordinierungskreis.de/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQE/zRsrOndlH63J86wRAtBIAKDOPE40+WLyFIK2mCT02gGDkW+YfwCguNcQ
MzNwpNhheDC9fMcctqmA76Q=
=nksO
-----END PGP SIGNATURE-----


Wenn Sie Ihr Abonnement fuer diese Gruppe kuendigen moechten, senden 
Sie eine E-Mail an:
[EMAIL PROTECTED]

 

Die Nutzung von Yahoo! Groups ist Bestandteil von 
http://de.docs.yahoo.com/info/utos.html 



---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
      subscribe-nomail command to [EMAIL PROTECTED] so that your
      message can get through to the mailing list cleanly

Reply via email to