podoc:count_photos_sql_function
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
podoc:count_photos_sql_function [2007/04/12 16:12] – Luud | podoc:count_photos_sql_function [2007/04/23 14:26] (current) – Luud | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Database | + | ===== Database |
=== Name === | === Name === | ||
Line 6: | Line 6: | ||
=== Description === | === Description === | ||
+ | |||
+ | Count the total number of photos. | ||
+ | |||
+ | There are two versions, one that counts all photos and one that counts only those photos up to a given access rights setting. | ||
=== Purpose === | === Purpose === | ||
+ | |||
+ | To retrieve the total number of photos. | ||
=== Schema === | === Schema === | ||
- | | + | <code sql> |
- | as ' | + | create function count_photos() returns bigint |
+ | as ' | ||
+ | </ | ||
- | | + | <code sql> |
- | as ' | + | create function count_photos(integer) returns bigint |
+ | as ' | ||
+ | </ | ||
=== Related tables === | === Related tables === | ||
- | === Related indexes === | + | * [[photo sql table|photo]] |
- | + | ||
- | === Related functions === | + | |
- | + | ||
- | === Related views === | + | |
=== History === | === History === | ||
Line 39: | Line 45: | ||
= Version 2.5 = | = Version 2.5 = | ||
- | | + | <code sql> |
- | as ' | + | create function count_photos() returns bigint |
+ | as ' | ||
+ | </ | ||
- | | + | <code sql> |
- | as ' | + | create function count_photos(integer) returns bigint |
+ | as ' | ||
+ | </ | ||
podoc/count_photos_sql_function.1176394324.txt.gz · Last modified: 2007/04/12 16:12 by Luud