The most profound words I’ve seen today:

“David E. Wheeler” (david@xxxxxxxxxxxxxx) writes:

Is a more Perlish syntax out of the question?

Yes. SQL is not Perl.

regards, tom lane