ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » How to select records from DB2 where field = null in ESQL ?

Post new topic  Reply to topic
 How to select records from DB2 where field = null in ESQL ? « View previous topic :: View next topic » 
Author Message
Bosco
PostPosted: Tue Sep 21, 2004 4:54 pm    Post subject: How to select records from DB2 where field = null in ESQL ? Reply with quote

Novice

Joined: 30 Nov 2003
Posts: 17

Hi,

I would like to select records from a DB2 database table where a particular field is containing null value (ie the field was not assigned any value initially when the records was inserted). Does anyone knowvalue should I compare with in my ESQL statement?

eg

SET Environment.Messages[] = (SELECT A.MSGDATECREATE,
A.MSGTYPE,
A.MSGID,
A.MSGORIGINAL,
A.MSGGETQUEUE
FROM Database.LATEMSG AS A
WHERE A.MSGPROCESSED = ???);

A.MSGPROCESSED is defined as timestamp in DB2

I am using WBIMB v5.0.3

Thanks
Bosco
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Sep 21, 2004 5:53 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Did you try "Is NULL"?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
mgk
PostPosted: Wed Sep 22, 2004 12:22 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

Just try NULL.

This should work fine.

Cheers,
_________________
MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » How to select records from DB2 where field = null in ESQL ?
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.