Reputation: 2761
I have create a number of tables in Azure Synapse Analytics and I would like to remove the first row from each of the tables.
Can someone assist with code that will remove the first row from each table.
I tried the following:
DELETE TOP (1)
FROM [dbo].[MyTable]
I got the error:
DML Operations are not supported with external tables.
Upvotes: 0
Views: 683
Reputation: 526
External tables are read-only. They are just another abstraction layer to lake. You can't perform DML operations over those files from Synapse.
What you could do is:
General rule of thumb is: only get what you need, deletion is usually slow.
Best, Onur
Upvotes: 1