題解 | #將查詢后的列重新命名#
將查詢后的列重新命名
http://www.fangfengwang8.cn/practice/0d8f49aeaf7a4e1cb7fecec980712113
select device_id from user_profile where id <=2
這里有點問題,明明沒能改列名,卻說通過了
select device_id as user_infos_example from user_profile limit 2
應當需要加上as才是改名的
將查詢后的列重新命名
http://www.fangfengwang8.cn/practice/0d8f49aeaf7a4e1cb7fecec980712113
select device_id from user_profile where id <=2
這里有點問題,明明沒能改列名,卻說通過了
select device_id as user_infos_example from user_profile limit 2
應當需要加上as才是改名的
相關(guān)推薦