I discovered the other day that I need to change all the records with a country field entry of "USA" to "US". It seems to me that I've seen a way to do that with the SQL tool, but searching the forums hasn't turned up the post I thought I remembered. Is there a way to do this...aside from changing each record by hand, that is.
Thanks,
Kabing
[Solved] Batch Change Field Contents?
[Solved] Batch Change Field Contents?
Last edited by kabing on Wed May 14, 2008 11:53 pm, edited 1 time in total.
NeoOffice (app store version) OpenOffice.org 4.1 and LibreOffice 4.3 on Mac OS X El Capitan
OpenOffice.org 4.1.2 on Windows 10 (Previously on Vista)
OpenOffice.org 4.1.2 on Windows 10 (Previously on Vista)
Re: Batch Change Field Contents?
I don't use HSQLDB but the command should be something like:
Code: Select all
UPDATE mytable SET fieldname = "US" WHERE fieldname = "USA"
Re: Batch Change Field Contents?
Code: Select all
UPDATE "mytable" SET "fieldname" = 'US' WHERE "fieldname" = 'USA'
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Re: [solved] Batch Change Field Contents?
Thanks so much! It worked perfectly!
kabing
kabing
NeoOffice (app store version) OpenOffice.org 4.1 and LibreOffice 4.3 on Mac OS X El Capitan
OpenOffice.org 4.1.2 on Windows 10 (Previously on Vista)
OpenOffice.org 4.1.2 on Windows 10 (Previously on Vista)