Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: Is there a better way to do this?




On Aug 28, 2007, at 16:55 , D. Dante Lorenso wrote:

	RETURN time + (days || ' days')::INTERVAL;

It's bad practice to concatenate like this. Use time + days * interval '1 day' and be done with it.


Michael Glaesemann
grzm seespotcode net





Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group