Trying to concat 3 columns into one, but keep getting an error that I have an invalid number of arguments.
select concat("first_name", " ", "last_name", " ", "job_id")
from employees;
Trying to concat 3 columns into one, but keep getting an error that I have an invalid number of arguments.
select concat("first_name", " ", "last_name", " ", "job_id")
from employees;
ORA-00909
is an Oracle error, not Mysql.
In Oracle concat()
takes only 2 arguments.
Use the ||
operator.
select first_name || ' ' || last_name || ' ' || job_id AS NewName from employees;