I have a stand alone H2 server up and running gathering data. For testing I want to get data out my server into a CSV file. Are there any tools for that?
CSVWRITE
This is perhaps all that you need:
call CSVWRITE ( 'C:/MyFolder/MyCSV.txt', 'SELECT * FROM MYTABLE' )
You need to just run the call (mentioned above) in the browser based client of H2 that you are most likely using.
Further reading: http://www.h2database.com/html/functions.html#csvwrite .
对于小数据,还可以使用script
导出任意表:
script table <table_name>
另一种方法对我有用:
script SIMPLE to 'C:\FolderName\FileName.sql' table SCHEMA.TABLENAME;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.