dbTalk Databases Forums  

not matches in a construct clause

comp.databases.informix comp.databases.informix


Discuss not matches in a construct clause in the comp.databases.informix forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Juanito
 
Posts: n/a

Default not matches in a construct clause - 01-04-2008 , 08:06 AM






hi everybody
a sql like

select * from table_name
where
field_name not matches "V*"

how can i put this condition in the run of a program made with construct by
name?

Thanks everybody



Reply With Quote
  #2  
Old   
Obnoxio The Clown
 
Posts: n/a

Default Re: not matches in a construct clause - 01-04-2008 , 08:29 AM







Juanito said:
Quote:
hi everybody
a sql like

select * from table_name
where
field_name not matches "V*"

how can i put this condition in the run of a program made with construct
by
name?

It's been a long, long time, but something like

^V*

might work...

--
Bye now,
Obnoxio

"There were a myriad of problems which conspired to corrupt your reason
and rob you of your common sense. Fear got the best of you, and in your
panic you turned to the Labour Party. They promised you order, they
promised you peace, and all they demanded in return was your silent,
obedient consent."

--
This message has been scanned for viruses and
dangerous content by OpenProtect(http://www.openprotect.com), and is
believed to be clean.



Reply With Quote
  #3  
Old   
scottishpoet
 
Posts: n/a

Default Re: not matches in a construct clause - 01-04-2008 , 09:14 AM



On Jan 4, 1:29*pm, "Obnoxio The Clown" <obno... (AT) serendipita (DOT) com>
wrote:
Quote:
Juanito said:

hi everybody
a sql like

select * from table_name
where
field_name not *matches "V*"

how can i put this condition in the run of a program made with construct
by
name?

It's been a long, long time, but something like

^V*

might work...

--
Bye now,
Obnoxio

"There were a myriad of problems which conspired to corrupt your reason
and rob you of your common sense. Fear got the best of you, and in your
panic you turned to the Labour Party. They promised you order, they
promised you peace, and all they demanded in return was your silent,
obedient consent."

--
This message has been scanned for viruses and
dangerous content by OpenProtect(http://www.openprotect.com), and is
believed to be clean.
http://publib.boulder.ibm.com/epubs/pdf/ct1vbna.pdf

4GL reference manual, Chapter 4 page 61

Caret. A caret ( ^ ) as the first character within the brackets
specifies
the logical complement of the set, and matches any character that is
not listed. For example, the search value [^AB]* specifies all strings
beginning with characters other than A or B.

So you may need to do [^V}*


Reply With Quote
  #4  
Old   
malcolm.iiug
 
Posts: n/a

Default RE: not matches in a construct clause - 01-04-2008 , 09:56 AM



When you do a CONSTRUCT BY NAME in Informix-4GL the system uses a form to
assist in generating a where clause for embedding into an SQL statement.
The Query by Example is very clever and recognises many of the regular
expressions including the squared-bracket notation. I know this includes [ ]
notation and I have always assumed that this is comprehensive. I have just
tried this on one of my systems and in the field concerned entered [^V]*
and that worked.

BTW this should also work in Informix-SQL forms.

Regards

Malcolm

-----Original Message-----
From: informix-list-bounces (AT) iiug (DOT) org [mailto:informix-list-bounces (AT) iiug (DOT) org]
On Behalf Of Juanito
Sent: 04 January 2008 13:06
To: informix-list (AT) iiug (DOT) org
Subject: not matches in a construct clause

hi everybody
a sql like

select * from table_name
where
field_name not matches "V*"

how can i put this condition in the run of a program made with construct by
name?

Thanks everybody


_______________________________________________
Informix-list mailing list
Informix-list (AT) iiug (DOT) org
http://www.iiug.org/mailman/listinfo/informix-list



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.