Re: $Body$

From: David Fetter <david(at)fetter(dot)org>
To: bilal ghayyad <bilmar_gh(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: $Body$
Date: 2009-08-30 23:22:09
Message-ID: 20090830232209.GJ20482@fetter.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sun, Aug 30, 2009 at 04:13:18PM -0700, bilal ghayyad wrote:
> This is the idea david:
>
> Why in the constant string we use the tag and we do not use the tag
> in the BODY?
>
> In other wrods, why we write it $BODY$ and does not write it as
> $q$BODY$q$ or as $$BODY$$?

The string BODY in $BODY$ has no syntactical significance. You could
just as easily use $$ or $supercalifragilisticexpialidocious$. The
only place where the string inside matters is when you're nesting
dollar quoted structures.

> Also why in the single-quote syntax, each backslash will be written
> as four backslashes? While this will not be needed in the
> dolar-quoted string?

Dollar quoting was specifically invented so that people would not have
to use torrents of backslashes and/or single quotes.

Cheers,
David.
--
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david(dot)fetter(at)gmail(dot)com

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate

In response to

  • Re: $Body$ at 2009-08-30 23:13:18 from bilal ghayyad

Browse pgsql-general by date

  From Date Subject
Next Message bilal ghayyad 2009-08-31 01:56:59 Query and the number of row result
Previous Message bilal ghayyad 2009-08-30 23:13:18 Re: $Body$