Difference between revisions of "Documentation/DevGuide/Database/Queries"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (Robot: Changing Category:Database Access)
m (Robot: Changing Category:Documentation/Developers Guide/Database Access)
Line 15: Line 15:
 
{{PDL1}}
 
{{PDL1}}
  
[[Category:Documentation/Developers Guide/Database Access]]
+
[[Category:Documentation/Developer's Guide/Database Access]]

Revision as of 08:00, 5 June 2008



A com.sun.star.sdb.QueryDefinition encapsulates a definition of an SQL statement stored in OpenOffice.org API. It is similar to a view or a stored procedure, because it can be reused, and executed and altered by the user in the GUI. It is possible to run a QueryDefinition against a different database by changing the underlying DataSource properties. It can also be created without being connected to a database.

The purpose of the query services available at a DataSource is to define and edit queries. The query services by themselves do not offer methods to execute queries. To open a query, use a com.sun.star.sdb.RowSet service or the com.sun.star.sdb.XCommandPreparation interface of a connection. See the sections The RowSet Service and PreparedStatement From DataSource Queries for additional details.

Content on this page is licensed under the Public Documentation License (PDL).
Personal tools