Hi All,
Is it possible to pass use a variable or constant to pass the table name in a select query??
Such as the following
DECLARE
tablename CHAR(30);
BEGIN
tablename := 'Table'
SELECT * from tablename;
END;
Or is there another way of doing querying tables dynamically??
Any help would be great
Regards
Anthony
Is it possible to pass use a variable or constant to pass the table name in a select query??
Such as the following
DECLARE
tablename CHAR(30);
BEGIN
tablename := 'Table'
SELECT * from tablename;
END;
Or is there another way of doing querying tables dynamically??
Any help would be great
Regards
Anthony