I am trying to pass in a SQL string to a stored procedure and using EXECUTE IMMEDIATE to return the results. Something like this:

```
CREATE PROCEDURE P360_RCT_COUNT (sqlString IN VARCHAR2)
AS
BEGIN
   EXECUTE IMMEDIATE sqlString;
END;
/

```

I am not sure how to accomplish it. With the above, when I execute the SP using the command below, I get an error:

```
EXECUTE P360_RCT_COUNT 'SELECT COUNT(DISTINCT ENTITY_ID),ADDR_COUNTY FROM P360_V_RCT_COUNT GROUP BY ADDR_COUNTY';

```

The error is: ORA-06550: line 1, column 22:

> 
> PLS-00103: Encountered the symbol "SELECT COUNT(ENTITY\_ID),ADDR\_COUNTY
>  FROM P360\_V\_RCT\_COUNT GROUP " when expecting one of the following:
> 
> 
> := . ( @ % ; The symbol ":=" was substituted for "SELECT
>  COUNT(DISTINCT ENTITY\_ID),ADDR\_COUNTY FROM P360\_V\_RCT\_COUNT GROUP " to
>  continue.
> 
> 
> 

Basically I am building a SQL string in a system and need to pass it in to the SP and get the results back to the system. I am relatively new to stored procedures in Oracle.