Re: [GENERAL] Problem with LIKE operator

2000-03-22 Thread Gabriel Fernandez
Hi, Finally I have found the problem: the table was corrupted, so i have recreated it and it works fine. I wonder if instead of recreating it i would have had to execute a vacuum. Thanks to you all for your help and your suggestions (i will keep them for the future). Gabi :-)

Re: [GENERAL] Problem with LIKE operator

2000-03-21 Thread Stefano Bargioni
Gabriel Fernandez wrote: > Hi, > > I have some problems using LIKE within strings which have brackets. > > For example if i do: > > select code from codes where code like '(4)' ; > > i do not obtain nothing. But in the DB indeed there is a row whose code > is '(4)'. > > I have tried to escape the

Re: [GENERAL] Problem with LIKE operator

2000-03-21 Thread Mike Mascari
Gabriel Fernandez wrote: > > Hi, > > I have some problems using LIKE within strings which have brackets. > > For example if i do: > > select code from codes where code like '(4)' ; > > i do not obtain nothing. But in the DB indeed there is a row whose code > is '(4)'. > > I have tried to esc

RE: [GENERAL] Problem with LIKE operator

2000-03-21 Thread Culberson, Philip
> (2 rows) > > business=> select * from foo where mytext like '(4)'; > mytext > -- > (0 rows) > > business=> select * from foo where mytext like '(4)%'; > mytext > -- > (4) > (1 row) > > Phil Culberson > DAT Services

RE: [GENERAL] Problem with LIKE operator

2000-03-21 Thread Culberson, Philip
mytext -- (0 rows) business=> select * from foo where mytext like '(4)%'; mytext -- (4) (1 row) Phil Culberson DAT Services -Original Message- From: Gabriel Fernandez [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 21, 2000 4:47 AM To: PostgreSQL-general Subj

[GENERAL] Problem with LIKE operator

2000-03-21 Thread Gabriel Fernandez
Hi, I have some problems using LIKE within strings which have brackets. For example if i do: select code from codes where code like '(4)' ; i do not obtain nothing. But in the DB indeed there is a row whose code is '(4)'. I have tried to escape the brackets with '\\(4\\)' or with ' \(4\)' but