SunQuest
 
           General SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesGeneral SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old May 8th, 2003, 01:25 PM
dani2003_oracle dani2003_oracle is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 9 dani2003_oracle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Exclamation select into problem !!! please help !!!

Ok, so I have this pl/sql code in an oracle funtion...

(userWEB char) return number is
nick char(15) := 'a';
result number := 0;
BEGIN
select nick_user into nick from user_table where nick_user = userWEB;

if (nick = 'masteruser') then
result:=1;
else
result:=0;
end if;

return result;
END;

so the idea is to recieve the name of one user (userWEB) and to see if that user is in the table (user_table). So the strange thing is that when is true (when the userWEB name is 'masteruser') it returns the value of 1, but when I put some other name (for instance 'materus') it doesn't return me anything, not even 0, just nothing. I have tried also to ask if nick is null but also it doesn't return me the value that I have asigned in the code... can anyone out there help me !!! I have to resolve this code bad and soon... I will very thankfull...

dani2003_oracle

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesGeneral SQL Development > select into problem !!! please help !!!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway