Re: [SQL] How match percent sign in SELECT using LIKE?

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: herouth(at)oumail(dot)openu(dot)ac(dot)il (Herouth Maoz)
Cc: zalman(at)netcom(dot)com, pgsql-sql(at)postgreSQL(dot)org
Subject: Re: [SQL] How match percent sign in SELECT using LIKE?
Date: 1999-03-17 16:30:08
Message-ID: 199903171630.LAA10656@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

> Thus, if someone has a script written to the SQL92 standard, he is allowed
> to use a construct like
>
> ...WHERE pathname LIKE 'C:\WINDOWS\%'
>
> Without encountering oddities.

Yes, but all our strings us '\' as escape. If we turn it off just for
the LIKE string, people will be very confused.

--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Bill Barber 1999-03-17 23:02:09 unsubscribe
Previous Message Angelo CONFLITTI 1999-03-17 15:33:35 Problems with OUTER JOIN - UNION ... and so on ..