I needed to run this query:
"Select column_name from all_tab_columns
where table_name=''" + tableName + " owner='" + ownerName + "'";
This is running it as an OracleCommand in C#. It didn't work. I tried many variations including different variables but it never works when I put table_name in the where clause. It's not because I'm not using LIKE either.