From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | venkat <ven(dot)tammineni(at)gmail(dot)com> |
Cc: | Postgres General <pgsql-general(at)postgresql(dot)org>, pgsql-sql(at)postgresql(dot)org |
Subject: | Re: [SQL] How to convert string to integer |
Date: | 2010-12-15 10:27:50 |
Message-ID: | AANLkTikfbTjg2=wo3+FH67VtfWFUYdno0YN=8qRFf1JX@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-sql |
Hello
you can use a ::int for converting to integer. Or better - you can
alter column to integer. It will be faster and more correct.
Regards
Pavel Stehule
2010/12/15 venkat <ven(dot)tammineni(at)gmail(dot)com>:
> Dear All,
> How do i convert string to int
> select SUM(pan_1) from customers1 where name='101'
> When i run the above query i m getting "function sum(character varying)
> does not exist"..
> Please anyone can guide me..
> Thanks
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Marcin Krol | 2010-12-15 10:30:14 | Linux: PAE or x64 |
Previous Message | Szymon Guz | 2010-12-15 10:27:37 | Re: How to convert string to integer |
From | Date | Subject | |
---|---|---|---|
Next Message | Viktor Bojović | 2010-12-15 10:37:34 | Re: [SQL] How to convert string to integer |
Previous Message | Szymon Guz | 2010-12-15 10:27:37 | Re: How to convert string to integer |