Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 17th, 2004, 08:10 AM
hudo hudo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 97 hudo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 23 m 19 sec
Reputation Power: 5
FROM emp SAMPLE (MYNUMBER)

Hello,
why does the following code work NOT with the line:
SAMPLE (mynumber )




Code:
CREATE OR REPLACE
PROCEDURE mysample
IS

mynumber NUMBER := 20;


BEGIN

DBMS_OUTPUT.PUT_LINE('mynumber:  '||mynumber);

FOR r_samp IN (
	SELECT SAL 
	FROM EMP  
	--SAMPLE ( 20 )
	SAMPLE ( mynumber )
)
LOOP

DBMS_OUTPUT.PUT_LINE('sal:  '||r_samp.SAL);


END LOOP;

DBMS_OUTPUT.PUT_LINE('mynumber:  '||mynumber);

END  mysample;

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > FROM emp SAMPLE (MYNUMBER)


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