I have an application that uses an Oracle database. It reads data out of the database using statements like:
SELECT * from schema.table WHERE ...
I would like to create a SQLite database with data I can use for regression-testing the application. It's simple enough to change the jdbc settings to get the application to connect to a different database, but the SQL statements need to be exactly the same.
I know when I run SQLite from the command line, I can attach a database using
attach database as
If I do that, then the same select statements that work in oracle to access a table in a different Oracle schema will work to access the data in a different SQLite database. But, since I'm connecting via JDBC, I don't have the option to run the "attach database" command.
Is there a way to configure SQLite such that it will accept requests like the above?
I tried
create table "schema.table" ...
That worked, but then I need to include the quotes in the select statement, which Oracle won't allow.