How can I insert in 2 or more tables using a single query?
I wanna do this:
Table_1:
Id_Prod
Name
Table_2:
Id_Prod
Any_Other_Data
So if I need to fill it it should be like this
Table_1
Id_Prod = 1
Name = 'Something';
Table_2
Id_Prod = 1
Any_Other_Data = 'Any In Record # 1'
Id_Prod = 1
Any_Other_Data = 'Any In Record # 2'
I wanna do this:
Table_1:
Id_Prod
Name
Table_2:
Id_Prod
Any_Other_Data
So if I need to fill it it should be like this
Table_1
Id_Prod = 1
Name = 'Something';
Table_2
Id_Prod = 1
Any_Other_Data = 'Any In Record # 1'
Id_Prod = 1
Any_Other_Data = 'Any In Record # 2'