首先使用left进行用户名与地名的字段切割,再使用concat进行拼接,最后使用upper拼接内容大写化。
select cust_id, cust_name, upper(concat(left(cust_name,2),left(cust_city,3))) user_login from Customers;

select cust_id, cust_name, upper(concat(left(cust_name,2),left(cust_city,3))) user_login from Customers;