Dear Richard Greenwood,
I am contacting you because I saw this post from 2/17/2008 on a Google forum asking how to query more than one column at the same time using MapInfo. Here is a copy of the post you made:
I would like to update more than one column with a single SQL
statement but it appears that MapInfo only allows updating one column
in a SQL statement. Am I correct about this? Can anyone suggest a work
around?Thanks,
Rich--
Richard Greenwood
richard....@gmail.com
www.greenwoodmap.com
I am trying to figure out how to do the same thing on MapInfo but I have yet to find an answer. I tried using the Update Column option under the Table tab and then tried the option Expression (see attached). However, in the text box I could not type more than a few characters. I would like to know, if you have already found an answer? And if yes, where do I exactly type the syntax to do the query? Please, if you have the time to assist me on this I would deeply appreciate it since I have tried but failed miserably.
Best regards,
Theudys Mejia
Engineer Assistant
EDS / Pisgah Telecommunications Inc.
Authorized FiOS Contractor for Verizon
(O) 718-993-3241
(F) 718-993-3486
(C) 646-260-2658
Hello Alan,I am using MapInfo Professional 7.8 and tried to do that update query under the tab Table>Update Column...>Assist... However, i keep getting the same error that the syntax is not right. I don't know if i should make a MapBasic Script or if i should use another options on MapInfo but i am really stuck. Or it is maybe that MapInfo 7.8 does not support those commands, and if not, what am i doing wrong? Please, if you have any other suggestions let me know. Thank you for your help.Best Regards,Theudys Mejia
On Friday, May 24, 2013 6:37:49 AM UTC-4, Alan Carr wrote:
Hi Richard,You need to know the column number of the unique identifier in both tables and run something like this:Add Column TABLE1 (COL1)From TABLE2Set To COL1 where COL13 = COL13Add Column TABLE1 (COL2)From TABLE2Set To COL2 where COL13 = COL13Add Column TABLE1 (COL3)From TABLE2Set To COL3 where COL13 = COL13Add Column TABLE1 (COL4)From TABLE2Set To COL4 where COL13 = COL13Add Column TABLE1 (COL5)From TABLE2Set To COL5 where COL13 = COL13Add Column TABLE1 (COL6)From TABLE2Set To COL6 where COL13 = COL13Obviously replace Table1 with the table you are updating and Table2 with the table you are obtaining your values from. This is from a tool I did a couple of weeks ago, in this case Column 13 in both tables is the unique identifier. The tool was designed to update from an excel document with an identical table structure to the TAB file.Hope his helps.-Alan
![]() Mouchel Limited (Mouchel) is registered in England and Wales with registered number 01686040 at Export House, Cawsey Way, Woking, Surrey, UK, GU21 6QX. The information in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorised. Any views or opinions expressed in this e-mail may be solely those of the author and are not necessarily those of Mouchel. No contracts may be concluded on behalf of Mouchel by means of email communications. Mouchel reserves the right to monitor and intercept emails sent and received on our network. |