Subject Re: [firebird-support] How can I change a blob column to varchar?
Author James N Hitz
mlq97 wrote:
> I have a blob column that contains only text data. I would like to
> change the column type to varchar(500). Is this possible? How can I do
> this?
>
>
1. create the VARCHAR(500) field

2. then..
UPDATE tableName SET varCol =
(SELECT SUBSTRING(blobCol FROM 1 FOR 500) from tableName)

3. dont forget:
COMMIT

4. delete BLOB field

5. rename VARCHAR field
> Mitch
>