inserting values into types

Поиск
Список
Период
Сортировка
От Andrew Thorley
Тема inserting values into types
Дата
Msg-id 20041130235117.E60912B2B86@ws5-7.us4.outblaze.com
обсуждение исходный текст
Ответы Re: inserting values into types
Список pgsql-sql
Hi,

ive generated a user defined type: CREATE TYPE qwerty_UDT AS (abc INT);

& table as: CREATE TABLE t (col1 qwerty_UDT);

my prob is that when i try to insert into the type i.e: INSERT INTO t (col1) Values (qwerty_UDT(123));

i get the error:

ERROR:  function test_x(integer) does not exist
HINT:  No function matches the given name and argument types. You may need to add explicit type casts.

which is quite confusing, does anyone have any ideas or exp with this scenario, or offer help in any way?

ty in advance :)
--
______________________________________________
Check out the latest SMS services @ http://www.linuxmail.org
This allows you to send and receive SMS through your mailbox.


Powered by Outblaze


В списке pgsql-sql по дате отправления:

Предыдущее
От: Christoph Haller
Дата:
Сообщение: Re: session-wide autocommit off
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: inserting values into types