I'm writing an embedded SQL application in C language. The application receives a string from a function and I need to create a table whose name is taken from that string. I have to create several tables with different names, but I don't know the number and the name of the tables from the start.
This is what i want to do:
tablename = function();
...
EXEC SQL CREATE TABLE :tablename ( ... );
But I got this error:
ERROR: syntax error at or near ":tablename"
EXEC SQL CREATE TABLE :inc?