-
-
Save palcu/c12e2d285bbac51e9e57 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#XLS | |
update resource set format='xls' where format='XLS'; | |
update resource set format='xls' where format='.xls'; | |
#XML | |
update resource set format='xml' where format='.xml'; | |
update resource set format='xml' where format='XML'; | |
update resource set format='xml' where format='Xml'; | |
update resource set format='csv' where format='CSV'; | |
update resource set format='ods' where format='ODS'; | |
update resource set format='xlsx' where format='XLSX'; | |
update resource set format='pdf' where format='PDF'; | |
update resource set format='html' where format='HTML'; | |
update resource set format='kmz' where format='KMZ'; | |
update resource set format='kml' where format='KML'; | |
update resource set format='jpeg' where format='JPEG'; | |
update resource set format='png' where format='PNG'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As a suggestion, to lowercase all strings you could use the SQL function
LOWER()
as inUPDATE RESOURCE SET format=LOWER(format)