Using what's available in the System.Data.SQLite namespace and using C# I'm doing database operations. However, there is one problem I can't seem to get figured out.
If I want to create a table which is NAMED DYNAMICALLY AT CREATION, I thought the way to do that would be ...
command.CommandText = @"CREATE TABLE IF NOT EXISTS @tableName( ... )";
and then do this ...
command.Parameters.AddWithValue("@tableName", tableName);
and then do the
command.ExecuteNonQuery();
But what's happening is that I'm getting a new table named "@tableName" instead of whatever the variable tableName is set to.
How can I get this to work correctly?