LibreOffice 7.4 Súgó
The Database service provides access to databases either embedded or described in Base documents. This service provides methods to:
Get access to data in database tables.
Run SELECT queries and perform aggregate functions.
Run SQL action statements such as INSERT, UPDATE, DELETE, etc.
Each instance of the Database service represents a single database and gives access to its tables, queries and data.
This service does not provide access to forms or reports in the Base document that contains the database. To access forms in a Base document, refer to the method FormDocuments of the Base service.
All exchanges between this service and the database are done using SQL only.
SQL statements may be run in direct or indirect mode. In direct mode the statement is transferred to the database engine without any syntax checking or review.
The provided interfaces include simple tables and queries lists, as well as access to database data.
Az SQL-utasítások olvashatóbbá tétele érdekében a táblák, lekérdezések és mezők nevének zárójeles lezárására szögletes zárójeleket "[ ]" használhat, ahelyett, hogy más, bizonyos relációs adatbázis-kezelő rendszerek (RDBMS) számára kizárólagos karaktereket használna. De vigyázzon, a zárójelek ebben a kontextusban kötelezőek.
Before using the Database service the ScriptForge library needs to be loaded or imported: