Type `string' does not contain a definition for `' and no extension method `'

I hidden scripts and url.

I have the error: Type string' does not contain a definition for ’ and no extension method `’ .

the script that calls is:

StartCoroutine(sql.ToAccessSQL(sql1));
sql1 is a string.

And call to:

public IEnumerator ToAccessSQL (string sql) {
        WWW connection = new WWW("urlhide"+sql);
        yield return(connection);
        sqlOK = connection.text;
    }

StartCoroutine(sql.ToAccessSQL(sql1));

‘ToAccessSQL’ is not a member of the string ‘sql’, its a member of your script file
just use
StartCoroutine(ToAccessSQL(sql1));

The name `ToAccessSQL’ does not exist in the current context

sql is the script that i call to run the ToAccessSQL because startcourintine is not in sql script

Thats the kind of thing that is useful to say when you post for help. Because from what you posted, nothing is wrong.
Zero errors from this code:

public class NewBehaviourScript : MonoBehaviour
{
    public MyScript sql;

    private void Start()
    {
        StartCoroutine(sql.ToAccessSQL("Test"));
    }
}

public class MyScript : MonoBehaviour
{
    string sqlOK;
    public IEnumerator ToAccessSQL(string sql)
    {
        WWW connection = new WWW("urlhide" + sql);
        yield return (connection);
        sqlOK = connection.text;
    }
}

ok sorry I thought it had been clear, I’ve seen your example and I’ve realized that it’s because I can not seem to open an ienumber

Can I call an IEnumerator inside another?

You can start any coroutine anywhere else.

I have in a ienumerator other startcoruntine and this starts but dont end, end in yield return but dont continue to end the ienumerator

Have you tried to make an instance of the class before calling it?