How can I parameterize the schema and table name? This is for a report. The user will be prompted to select the schema. The schema names are SALES_PRODUCT_D B.PRODUCT and SUPPORT_PRODUCT _DB.PRODUCT.
Any help is much appreciated.
Thanks!
Code:
SELECT PRODUCT_ID as "ID", PRODUCT_NAME as "Product", to_char(CREATION_DATE, 'mm/dd/yyyy') as "Creation Date", PRODUCT_STATUS as "Status" FROM :DEFAULTDIVISIONPRODUCT WHERE CREATION_DATE >= :StartCreationDate and CREATION_DATE <= :EndCreationDate
Thanks!
Comment