I have two databases 1) erp 2) edusource
In erp database i have table master tables and columns like RecordId , value type ,Feildtext,description,Meaining,parentid etc
data stores based on value type like
1 | Country | In | India | NULL | NULL | True |
2 | Country | Aus | Austrilia | NULL | NULL | True |
3 | Country | Usa | United States of America | NULL | NULL | True |
4 | Country | Uk | Great Britian | NULL | NULL | True |
5 | State | AP | Andhrapradesh | NULL | 1 | True |
6 | State | MH | Maharastha | NULL | 1 | True |
7 | State | TN | Tamilnadu | NULL | 1 | True |
8 | State | Sdy | Sydney | NULL | 2 | True |
9 | State | MEL | Melbourne | NULL | 2 | True |
10 | Location | IN-Hyd | Hyderabad | NULL | 1 | True |
11 | Location | In SEz | Sez-Hyderabad | NULL | 1 | True |
NULL | NULL | NULL | NULL | NULL | NULL | NULL |
for country and state we have a relation ship parentid and recordid
country
1Country
InIndia NULLNULL1
2Country
AusAustrilia NULLNULL1
3Country
UsaUnited States of America NULLNULL1
4Country
UkGreat Britian NULLNUL 1
6State MaharasthaMH NULL1 1
7State Tamilnadu TNNULL 11
8State Sydney Sdy NULL 21
9State Melbourne MELNULL 21
in edusource database i have location and columns like countryname,statename,feildtext,descriptiom,isactive
i need to insert data in edusource
database of tbl_ maplocation from that that database