Download Wakasa Database User's Guide
Transcript
Wakasa Database User’s Guide 4 Using the data in external programs The plotting tools provide an overview of the data stored in the database. For more detailed analysis, it is usually necessary to use other tools. There are mainly two approaches: retrieving the desired part of data and converting it to a format suitable for further processing, or accessing the data in the database directly. 4.1 Exporting to other formats Most database browsing and management tools provide an option to export data from the database to files. In many cases, a simple format such as comma separated values (csv) is sufficient and can be easily used in many external programs, such as spreadsheet applications and popular mathematics packages. Here is a simple example of connecting to a database called using the program, retrieving two days of temperature and wind data from the weatherstation table and saving it in csv format to file : - - ! - - ) - . + . ' "! "! $ + % #! ! (* & - terminal window. Of course, it is As you can see, SQL queries can be written directly into the also possible to write them in a file which is executed using . The beginning of the resulting file looks like this: 32