Comments - Identifying and removing duplicates
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.
Thanks Ian for the reply.
If I apply the coding shown in 'Removing Duplicates' to my problem as
I get the error message-
SQL Erroe (1093): Table 'jobtransactionactuallabour' is specified twice, both as a target for 'DELETE' and as a separate source for the data.
I had thought that as the table was identified with aliases this should not be a problem but this doesn't appear to be the case
Please paste your CREATE TABLE statement so that it's easier to replicate your structure.
Hi Ian. This is the file structure dumped using HeidiSQL. The actual file size is 181.2Mb.
Apologies, I was leading you to syntax that only works in MariaDB 10.3 - MDEV-12137.
Thanks for the info. I'll dowwnload 10.3 and give it a go.
Note that MariaDB 10.3 is still alpha. So you can use it just to convert your data and then re-import it back to your current version, or you can try the alternative version I've added above. I wouldn't suggest using 10.3 in production yet.
Many thanks for the solution Ian. I have tried it using 10.3 and it has worked.
I now have six other major files on the system that have similarly been corrupted with duplicates to work my wat through.
The corruption occured not, I hasten to add, in MariaDB but in a D-ISAM based system which I have converted to MariaDB to solve the problem.
I really appreciate the time and trouble you have spent in helping me solve the issue.