Skip to content

Postgresql column reference is ambiguous

I want to call my function but I get this error: ERROR: column reference “list” is ambiguous LINE 3: SET list = ARRAY_APPEND(list, input_list2), the error is on the second list inside array_append function. My function: Answer You have to use the alias name in the insert query because list has two…

MySQL match a value with wildcard in multiple columns

I have a teachers table that looks like this: teacherid teacherfname teacherlname salary 1 Alexander Bennett 55.30 I would like to return any record that contains a given string in the teacherfname, teacherlname and salary columns. What I have right now (this returns exact match only): What I would like to do…