FUNCTION  fPrimTarget

Returns the PrimTarget value corresponding to a name

the photo and spectro primTarget flags can be shown with Select * from PrimTarget
Sample call to find photo objects that are Galaxy primary targets
select top 10 *
from photoObj
where primTarget & dbo.fPrimTarget('TARGET_GALAXY') > 0

see also fSecTarget

Input and output parameters

nametypelengthinoutpnum
 int4input0
@namevarchar40input1