DHTML Forum  

Go Back   DHTML Forum > dhtmlcentral.com > General DHTML issues
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 18.02.2004, 08:36
swami swami is offline
Neuer Benutzer
 
Join Date: 28.01.2004
Location:
Posts: 7
Default



Dear experts!

SELECT DOC_NO,PRESENT_USER FROM UDBA.TRNRESERVHDR WHERE DOC_NO=390;

DOC_NO PRESENT_US
------ ----------
390 udba

UPDATE UDBA.TRNRESERVHDR SET PRESENT_USER='swam' WHERE PRESENT_USER!=NULL AND DOC_NO=390;
(or)
UPDATE UDBA.TRNRESERVHDR SET PRESENT_USER='swam' WHERE DOC_NO=390 AND PRESENT_USER<>'';
commit;

When I Execute the statement no message is comming after that when i select the record.!!!! It's not updated..
SELECT DOC_NO,PRESENT_USER FROM UDBA.TRNRESERVHDR WHERE DOC_NO=390;

DOC_NO PRESENT_US
------ ----------
390 udba

But
UPDATE UDBA.TRNRESERVHDR SET PRESENT_USER='swam' WHERE DOC_NO=390;
commit;
SELECT DOC_NO,PRESENT_USER FROM UDBA.TRNRESERVHDR WHERE DOC_NO=390;

DOC_NO PRESENT_US
------ ----------
390 swam

it's updating.!!!! ????

Can any one explain me....??

regards
swami
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 18.02.2004, 12:42
weblogic weblogic is offline
Erfahrener Benutzer
 
Join Date: 18.04.2002
Location: USA
Posts: 907
Default

UPDATE UDBA.TRNRESERVHDR SET PRESENT_USER='swam' WHERE PRESENT_USER IS NOT NULL AND DOC_NO=390;
(or)
UPDATE UDBA.TRNRESERVHDR SET PRESENT_USER='swam' WHERE DOC_NO=390 AND PRESENT_USER<>'';
commit;


No comment on your naming conventions.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 18.02.2004, 13:12
Tim Scarfe Tim Scarfe is offline
Erfahrener Benutzer
 
Join Date: 14.05.2001
Location: United Kingdom
Posts: 1.015
Default

<blockquote id="quote"><span class="smalltext" id="quote">quote:<hr id="quote">No comment on your naming conventions.<hr id="quote"></blockquote id="quote"></span id="quote">

Hah! Job security I'm sure...

--
Regards,
Tim Scarfe <tim@developer-x.com>
http://www.developer-x.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Forum Jump

All times are GMT +2. The time now is 21:32.


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