User Tools

Site Tools


podoc:number_of_dupes_sql_function

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
podoc:number_of_dupes_sql_function [2007/04/13 07:22] Luudpodoc:number_of_dupes_sql_function [2007/04/23 14:30] (current) Luud
Line 6: Line 6:
  
 === Description === === Description ===
 +
 +Count the number of photo duplicates.
  
 === Purpose === === Purpose ===
 +
 +To return the number of photo duplicates.
  
 === Schema === === Schema ===
  
-  create function number_of_dupes(integer) returns bigint +<code sql> 
-  as 'select count(identifier) from photo_dupe where photo = $1' language 'sql';+create function number_of_dupes(integer) returns bigint 
 +as 'select count(identifier) from photo_dupe where photo = $1' language 'sql'; 
 +</code>
  
 === Related tables === === Related tables ===
  
-=== Related indexes === +  * [[photo_dupe sql table|photo_dupe]]
- +
-=== Related functions === +
- +
-=== Related views ===+
  
 === History === === History ===
Line 36: Line 38:
 = Version 2.5 = = Version 2.5 =
  
-  create function number_of_dupes(integer) returns bigint +<code sql> 
-  as 'select count(identifier) from photo_dupe where photo = $1' language 'sql';+create function number_of_dupes(integer) returns bigint 
 +as 'select count(identifier) from photo_dupe where photo = $1' language 'sql'; 
 +</code>
  
podoc/number_of_dupes_sql_function.txt · Last modified: 2007/04/23 14:30 by Luud