Re: Trunc in Postgres

From: "Chris Boget" <chris(at)wild(dot)net>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Trunc in Postgres
Date: 2003-09-03 14:21:49
Message-ID: 00f201c37226$b940a0d0$8c01a8c0@ENTROPY
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> You can try
> select CAST(cast('0000000000000000000000004' as NUMERIC(20)) AS varchar);

noobie question:

Do multiple casts like that slow down the query (in general and not specifically
for the query above)? If not, what about if the query is complex?

thnx,
Chris

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jenny - 2003-09-03 14:23:24 identifying rows locked in row level locking
Previous Message Tom Lane 2003-09-03 14:20:41 Re: Localization (for dates) Oracle vs. Postgresql