my idea is to set up C table and use triggers to create C table data and get its id to be used as the id of A table before the A table data is inserted. (table B is the same, considering the future expansion, using the base even number is not ideal.) I have
ideas, but I still can"t write them after flipping through Google. I don"t know if there is any boss who can give me a sentence template for my reference.
if it really doesn"t work, maybe I will choose to implement it at the code layer, but the performance must not be as high as that of the trigger