I got an error in ths code...
cannot implicitly convert type string to string[]....
public string[] SelectTable(String pSqlstmt)
{
string[] sTable;
string str;
if(pSqlstmt.Contains("from"))
{
int strlen=pSqlstmt.Length;
int strindfrom = pSqlstmt.IndexOf("from");
if (pSqlstmt.Contains("where"))
{
int strindwhere = pSqlstmt.IndexOf("where");
sTable = pSqlstmt.Substring(strindfrom, strindwhere);
}
else
{
sTable = pSqlstmt.Substring(strindfrom, strlen);
}
}
return sTable;
}