Table Name Variable with cursor
Is it possible to use a Parameter passed to a procedure as the table name
in a cursor selection statment. I thought the below would work but I get
a error. Does anyone have any ideas??
CREATE OR REPLACE PROCEDURE TEST(TABLENAME IN VARCHAR2) IS
CURSOR c1 IS SELECT MUNI FROM TABLENAME GROUP BY CITY;
FETCH c1 INTO c1rec;
EXIT WHEN c1%NOTFOUND;
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL