Re: How to convert a binary filed to an integer field?
От | wei725@lycos.com |
---|---|
Тема | Re: How to convert a binary filed to an integer field? |
Дата | |
Msg-id | 24138097.1201283182026430.JavaMail.root@mail-zbox11.bo3.lycos.com обсуждение исходный текст |
Ответ на | Re: How to convert a binary filed to an integer field? (Arjen Nienhuis <a.g.nienhuis@gmail.com>) |
Ответы |
Re: How to convert a binary filed to an integer field?
|
Список | pgsql-general |
Unfortunately, the statement doesn't work. I get an error message about unable to convert boolean to integer. I have a look at the case statement for the conversion, but don't understand how it works. ----- Original Message ----- From: "Arjen Nienhuis" <a.g.nienhuis@gmail.com> To: wei725@lycos.com Cc: pgsql-general@postgresql.org Sent: Thursday, August 26, 2010 4:56:09 AM GMT -08:00 US/Canada Pacific Subject: Re: [GENERAL] How to convert a binary filed to an integer field? On Wed, Aug 25, 2010 at 9:29 PM, < wei725@lycos.com > wrote: I have an application in the product. Now, one status field needs to have three statuses instead of two. How to make a suchchange in PostgreSQL? ALTER TABLE product ALTER status TYPE int USING status::integer;
В списке pgsql-general по дате отправления: