Simple PG Sql question (i hope)

From: Tony Caduto <tony_caduto(at)amsoftwaredesign(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Simple PG Sql question (i hope)
Date: 2005-08-08 19:06:20
Message-ID: 42F7AD2C.2060903@amsoftwaredesign.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I have a simple query:

select true,78,'Here is a value' as stringfield, testname from tbltest;

it returns:
true as bool
78 as int4
and the string 'Here is a value' as Unknown

Why is it that all the values besides the string come back with the
correct type?
what is a simple string being returned as unknown instead of varchar or
text?

Thanks,

Tony

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tony Caduto 2005-08-08 19:30:13 AMD 64 RPM?
Previous Message Jeff Davis 2005-08-08 18:58:11 escape string type for upcoming 8.1