I want to create basically an update query on Open Office Base (the same way with Ms ACCESS).
相关问题
- Adding up all the positive numbers in Excel
- libreoffice massive text color change
- How do I generate an OpenOffice Draw document?
- openoffice: duplicating rows of a table in writer
- How to get field lists using the OpenERP Report De
相关文章
- Problem with starting OpenOffice service (soffice)
- Library to write an odf file from a C program [clo
- Version-controlling zipped files (docx, odt)
- How to get the opened document using UNO?
- LibreOffice Command Line Conversion - No Output Fi
- sql dialect in OpenOffice Base
- OpenOffice convert doc to pdf with JAVA
- OpenOffice.org development with pyUno for Windows—
Base does not typically use update queries (but see below). Instead, the easiest way to do an update command is to go to Tools -> SQL. Enter something similar to the following, then press
Execute
:The other way is to run the command with a macro. Here is an example using Basic:
Note that the data can also be modified with a form or by editing the table directly.
Under some circumstances it is possible to create an update query. I couldn't get this to work with the default built-in HSQLDB 1.8 engine, but it worked with MYSQL.
Create Query in SQL View
Run SQL Command directly
.It gives an error that
The data content could not be loaded
, but it still performs the update and changes the data. To get rid of the error, the command needs to return a value. For example, I created this stored procedure in MYSQL:Then this query in LibreOffice Base modifies the data without giving any errors:
See also: