From: | JITEN KUMAR SHAH <jitenshah78(at)gmail(dot)com> |
---|---|
To: | pgsql-general(at)lists(dot)postgresql(dot)org |
Subject: | Re: Sub:column "" is of type bigint but expression is of type character varying |
Date: | 2022-08-17 12:27:02 |
Message-ID: | d6894447-5535-1f5a-0ad4-9153de0cea45@GMAIL.COM |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
1. Please check you tickets_archive.ticket_purchase_no data type.
2. check if you are using correct schema.
On 8/17/22 14:23, Rama Krishnan wrote:
> Hi All,
>
> I am having table name called tickets
>
>
> \d tickets
>
> Column | Type | Collation |
> Nullable | Default
> ------------------------------+-----------------------------+-----------+----------+---------
> id | bigint | | not
> null |
> ticket_purchase_no| bigint | | not
> null |
>
> this below table contains more than 2 years old data
> \d tickets_archive
>
> Column | Type | Collation |
> Nullable | Default
> ------------------------------+-----------------------------+-----------+----------+---------
> id | bigint |
> | not null |
> ticket_purchase_no| bigint | | not null |
>
>
>
>
> i have purged the old data from orginal table when i am restoring the
> data from archive table into orignal table i am getting the error
>
>
> *insert into tickets select * from tickets_archive;*
>
>
> column "*ticket_purchase_no*" is of type bigint but expression is of
> type character varying
> Regards
>
> A.Rama Krishnan
From | Date | Subject | |
---|---|---|---|
Next Message | ajay venki | 2022-08-17 12:39:27 | Re: Postgres question |
Previous Message | hubert depesz lubaczewski | 2022-08-17 12:24:02 | Re: Postgres question |