Good day. There is a column А (data type varchar(30) ) and a column В (data type double ). I write in is calculated as a column В this line cast(А as double) . When I start to enter data into a table, an error occurs. Is it possible to convert varchar data type to double data type?

    1 answer 1

    The type must not be DOUBLE, but DOUBLE PRECISION

     select cast('0.5' as DOUBLE PRECISION) from RDB$ROLES 
    • one
      although this is an implicit conversion, it still helped me find my mistake. thanks for the answer. - prapar