SQL Yoga version 1.1.0 build 4 :: Visit website

Printer friendly version

command sqlyoga_addToArray

Converts any number of key:value pairs into an array that is added to as a new element to another array.

command sqlyoga_addToArray @pArrayA, pKey, pKeyValue
Parameters
TypeNameDescription
Simple parameter. @pArrayA The array to add an element to. A new key equal to the number of elements of pArrayA + 1 will be added.
Simple parameter. pKey Key of pArrayA to store key/values in.
Simple parameter. pKeyValue Key/Value pairs in the format key:value. Each key value passed in will be added to the new key of pArray.
Description

put empty into theFieldsA 
sqlyoga_addToArray theFieldsA, "name:id", "type:sequence"

Return

empty