You must install Derby if you havenβt already. Derby comes with the ij command line tool. Use this tool to upload tables as sql queries or csv files. You can use them to import into sqlite.
First select the output format using
And then use these SQLs at the IJ command prompt to export to a file.
Read more about ij here after clicking this link ... click "Launch IJ".
An example of the main IJ tool
To export data from Derby
Fragment for launching IJ
`How to use the command Run ij as a separate command. Use this method if you are relatively new to the Java programming language and new to Derby. Follow the instructions in the "Setting Environment Variables" section before running the ij tool using this method. To run the ij script from the command line, use: I.Ya. You must add the DERBY_HOME / bin directory to the PATH environment variable before you can run the ij tool.
The ij script sets the appropriate environment variables, including CLASSPATH, and runs the ij tool.
CLI tool example:
ij> connect 'sample' as sample1;
ij> connect 'newDB; create = true 'as newDB;
ij (NEWDB)> show connections;
SAMPLE1 - jdbc: derby: sample
NEWDB * - jdbc: derby: newDB; create = true
IJ (NEWDB)>
source share