分享至
想請問大家我的sql是這樣"SELECT name,leave_lv,SUM(hour) FROM leave WHERE leave_lv='2' group by name
name
hour
leave
leave_lv
然後我想用mysql_fetch_array將資料迴出來但是SUM(hour) 出不來想請問這邊要注意的是什麼呢?
已邀請的邦友 {{ invite_list.length }}/5
SELECT name,leave_lv,SUM(hour) AS tothour FROM leave xxxx
AS tothour
IT邦幫忙