SQL Standard: "CAST( value AS text )" [or varchar] PostgreSQL short-hand: "value::text" In both formats replace value with whatever you want to convert. When writing a parameterized query (using ?) you can write "?::text" ( or Cast(? AS type) ) to explicitly cast the unknown parameter. The "text" in the above can be any type name. David J. |