[pgsql-jp: 32497] Re: union を使ったselect 結果のinsertができない 7.4.1,2

Hashimoto, Masaru hashimoto-m @ comtecc.net
2004年 3月 19日 (金) 13:54:43 JST


橋本です。

> ERROR:  column "cb" is of type integer but expression is of type text
> HINT:  You will need to rewrite or cast the expression.
> 
このエラーメッセージを見る限り、型があっていないように見えます。
(UNIONを使うと変わっちゃう?)
キャストして型を変換してみてはいかがでしょうか?
CAST(99 As int) か 99::int ですね。





pgsql-jp メーリングリストの案内