Código MySQL:
Ver original
obtengo el clientf_id (ultimo ingresado) INSERT INTO Clients (client_CISid, client_fname, client_lname, client_doc_type, client_cuit, client_doc_number, client_bank_branch, client_num_acount, client_cbu, client_bank_pref) VALUES ('80400033','Sacari','Lidia','49','2147483647','93741388','106','0151318','0 ',1),('80400039','Semkina','Tatiana','49','2147483647','93891202','0','0','2650000500420019879769',1),('80400172','Dukhovska','Larysa','49','2147483647','93763108','0','0','0720037388000035893354',1) etc... etc... Error Code: 1452 Cannot add or update a child row: a foreign key constraint fails (`tiens`.`Clients_ClientsFiles`, CONSTRAINT `Clients_ClientsFiles_ibfk_2` FOREIGN KEY (`clientf_id`) REFERENCES `ClientsFiles` (`clientf_id`) ON DELETE CASCADE)