I am familiar with SQL in SQLite and MySQL, but the OpenOffice database seems either very crippled, or I donβt understand how to execute raw SQL.
I want to do (efficiently) this:
INSERT INTO t2 SELECT NULL as id, t.foo, t.bar, '' as baz, 0 as quux
FROM MyTable t
All I can do is
SELECT t.foo, t.bar, '' as baz, 0 as quux FROM MyTable t
because NULL seems to confuse Base, as well as the syntax INSERT INTO T2 SELECT ....
Can someone tell me how to fix this?
source
share