思路:使用AS
关键字重命名
代码解释:基本与上题相同,只不过要将device_id
列重命名为user_infos_example
SELECT device_id AS user_infos_example FROM user_profile WHERE id = 1 OR id = 2;
题目:https://www.nowcoder.com/practice/0d8f49aeaf7a4e1cb7fecec980712113?tpId=199&tags=&title=&difficulty=0&judgeStatus=0&rp=0&sourceUrl=%2Fexam%2Foj%3Fpage%3D1%26tab%3DSQL%25E7%25AF%2587%26topicId%3D199