Re: lfcr with plpgsql

From: "Derrick Betts" <derrick(at)grifflink(dot)com>
To: <pgsql-novice(at)postgresql(dot)org>
Subject: Re: lfcr with plpgsql
Date: 2005-03-08 22:12:23
Message-ID: 1c5001c5242b$e93c6450$0200a8c0@main
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

It doesn't seem to be working that way, however. This is the code that
writes the string:

Body := \'Hello \'||agentnm||\',\n\';
Body := Body || \'This is a reminder for you to make contact with
\'||fname||\' \'||lname||\'.\n\';
Body := Body || \'The time to make contact was \'||remtime||\'\n\n\';
Body := Body || \'Thanks,\n\';
Body := Body || \'The reminder system\';

And this is the result in the email that I receive:

Hello Derrick Betts, This is a reminder for you to make contact with Tom
Jones. The time to make contact was 2005-03-09 13:25:00 Thanks, The reminder
system

Any thoughts?
Thanks,
Derrick

----- Original Message -----
From: "Michael Fuhr" <mike(at)fuhr(dot)org>
To: "Derrick Betts" <derrick(at)grifflink(dot)com>
Cc: <pgsql-novice(at)postgresql(dot)org>
Sent: Tuesday, March 08, 2005 2:29 PM
Subject: Re: [NOVICE] lfcr with plpgsql

> On Tue, Mar 08, 2005 at 12:36:16PM -0700, Derrick Betts wrote:
>
>> My question is how do I represent a carriage return or line feed
>> in a plpgsql function?
>
> See "String Constants" in the "SQL Syntax" chapter of the documentation.
> Here's a link to the latest version:
>
> http://www.postgresql.org/docs/8.0/interactive/sql-syntax.html#SQL-SYNTAX-STRINGS
>
> --
> Michael Fuhr
> http://www.fuhr.org/~mfuhr/
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
>
>

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Michael Fuhr 2005-03-09 00:42:00 Re: lfcr with plpgsql
Previous Message Michael Fuhr 2005-03-08 21:29:48 Re: lfcr with plpgsql