Skip to content

Looks up a string in a dictionary and returns the corresponding ID.

func.lookup_string(<dict_table>, <value>)
func.lookup_string('status_dict', 'Active')
┌───┐
1
└───┘
LOOKUP_STRING(<dict_table>, <value>)
SELECT LOOKUP_STRING('status_dict', 'Active');
┌───┐
1
└───┘