pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvar Freude <alvar@a-blast.org>
To: postgres@yahoogroups.de
Subject: [postgres] Text zu bytea casten
Date: Wed, 03 Dec 2003 00:07:23 +0100
Message-ID: <868910000.1070406443@gnarzelwicht.delirium-arts.de> (raw)

-----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:
postgres-unsubscribe@egroups.de

 

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





Message-ID: <868910000.1070406443@gnarzelwicht.delirium-arts.de>
Permalink:  ../868910000.1070406443@gnarzelwicht.delirium-arts.de/
Also on:    postgresql.org/message-id/868910000.1070406443@gnarzelwicht.delirium-arts.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: alvar@a-blast.org, postgres@yahoogroups.de
  Subject: Re: [postgres] Text zu bytea casten
  In-Reply-To: <868910000.1070406443@gnarzelwicht.delirium-arts.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox