I have a table in Azure Analytics called TestTable_CL, which has a lot of data there.
I want to clone this table to another one, but only the schema, not the data.
How is this possible?
I have tried to run multiple kusto queries in the Query Editor but not successful...
One of them is for example this:
.create table TestTableCopy_CL (schemaof(TestTable_CL))
You can use
.create table based-on
command to clone a table without data.Syntax:
I reproduced this with a sample table in Kusto database.
person_cloned_table
Person
Reference: .create table based-on - Azure Data Explorer | Microsoft Learn