I'm trying to automate a process in which an InfiniDB table is replaced. My idea is to create one table with the same structure as the original, load it with new data, and replace the original with this new one.
The problem is that when you do:
CREATE TABLE temp_table LIKE original_table;
the service replies the good old:
ERROR 138 (HY000): The syntax or the data type(s) is not supported by InfiniDB. Please check the InfiniDB syntax guide for supported syntax or data types.
I was thinking to do a SHOW CREATE TABLE
, replace the name, and run the result, but... that's a bit ugly.
Do you know of a better way?
Thanks in advance!!