1.as 写不写都可
2.别名加不加引号(单双)都可
//加引号:别名就是引号内的内容。
//不加引号:别名如果为小写,会解析为大写,别名实际为大写。
以上两点在调用别名时要注意,易报错:找不到对应的列(大小写对应的是不同的列)
select device_id AS user_infos_example from user_profile limit 0 , 2;
select device_id AS user_infos_example from user_profile limit 0 , 2;