I was looking for a MapBasic sentence to update a MapInfo table. I've got two tables and I want to update one of them (POINTS) with an attribute of another (REGIONS). I would like to update points with the name of the regions contained.
I mean, I have two tables in MapInfo, a polygons table and a points table. I want to fill the column "municipality" with the names of the polygons which contain the points.
I was trying with different possibilities, using the command "update" such as
Update {Text Table} Set {Column}=ObjectInfo(Obj,3)
Select * From {Text Table} Where Str$(Obj)=”TEXT”
Best Answer
Table POINTS (with column REGION_NAME),
Table REGIONS (with column NAME)
You should replace names for your actual tables and columns.