MapToQueryString

Description

Converts a map to a URL query string (key1=value1&key2=value2)

Syntax

MapToQueryString(map_expression)

Arguments

  map_expression (map) - The map to convert to a query string. 

Examples

MapToQueryString(TOMAP('k1','v1','k2','v2'))returns k1=v1&k2=v2

Return value datatype

The function returns a string

Impact of null value

If the map_expression is null, null is returned.