Database Function Description of "number_of_lens_references"

Name

number_of_lens_references

Description

Counts the number of references to a particular lens.

Tentative (is this correct?): this represents the number of photos in the database captured using the specified lens.

Purpose

To retrieve the number of references to a particular lens.

Schema

CREATE FUNCTION number_of_lens_references(integer) returns bigint
AS 'select count(photo_tech.identifier)
      from photo_tech, lens
     where photo_tech.lens=lens.identifier
       and lens.identifier = $1' LANGUAGE 'sql';

Related tables

History

Used first

Version 2.5

Used last

Still in use

Change history

= Version 2.5 =

CREATE FUNCTION number_of_lens_references(integer) returns bigint
AS 'select count(photo_tech.identifier)
      from photo_tech, lens
     where photo_tech.lens=lens.identifier
       and lens.identifier = $1' LANGUAGE 'sql';
podoc/number_of_lens_references_sql_function.txt · Last modified: 2007/04/23 10:31 by Luud
www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0