i’m trying to create a query in base using the following select statement to delete 'The ’ from the beginning of film titles to provide a sort order.
SELECT title
FROM tblprogram
ORDER BY TRIM(LEADING 'The ’ FROM title
);
Every time I get an SQL config error , but the command will run directly on mariadb.
[ma-3.2.2][11.5.2-MariaDB]You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'LEADING ‘The ’ FROM title
)’ at line 1 at /usr/src/debug/libreoffice-fresh/libreoffice-24.8.0.3/connectivity/source/drivers/odbc/OTools.cxx:357
I hope someone can help me out. I have tried various combinations of quotes in case it was that.
Although i am new to base and mariadb, I have used msAccess and Microsoft SQL in the past, but it was over 20 years ago so I am probably a bit rusty.