Skip to content

Search the database schema

Introduction

Queries are the main way of finding data in the database from a collections curator or internal researcher perspective. They are a specific method of searching through the database's tables where you use Boolean logic to filter results. Queries are used in many different parts of the Specify 7 system, and this section is here to help you design, build and save your queries.

Search the Collection Schemas

Each collection has their own configuration of the underlying database structure and tables, called a "schema." This is a quick searchable reference of each collection's database schema.

This form of advanced searching allows you to fine-tune results.

White space acts as an AND operator, while a single pipe (|) character acts as an OR operator. To escape white space, use double quote ex. ="scheme language" for exact match.

TokenMatch typeDescription
jscriptfuzzy-matchItems that fuzzy match jscript
=schemeexact-matchItems that are scheme
'pythoninclude-matchItems that include python
!rubyinverse-exact-matchItems that do not include ruby
^javaprefix-exact-matchItems that start with java
!^earlanginverse-prefix-exact-matchItems that do not start with earlang
.js$suffix-exact-matchItems that end with .js
!.go$inverse-suffix-exact-matchItems that do not end with .go

Save Queries

Once you have created a query that you're satisifed with and would like to reuse, you can save your query.