I'm familiar with SQL in SQLite and MySQL, but OpenOffice Base seems to be either very crippled, or I don't understand how to execute raw SQL.
I want to do (effectively) 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 the NULL seems to give Base confusion, as does the INSERT INTO T2 SELECT ...
syntax.
Can anyone suggest how I need to fix this?