Product Documentation

FairCom Direct SQL for C and C++

Previous Topic

Next Topic

ctsqlGetParameterIndexByName

In FairCom DB V11.5 and later, ctsqlGetParameterIndexByName, provides a way to identify the parameter index number from its name when using named parameters.

ctsqlGetParameterIndexByName

Declaration

CTSQLRET ctsqlGetParameterIndexByName(pCTSQLCMD hCmd CTSQLCHAR* name)

Description

Retrieve the parameter index given its name when using named parameter :name.

  • hCmd - the command handle
  • name - parameter name (without ':').

Return

Return the parameter index or -1 if not found.

TOCIndex