IF#select_type# = 1 total_num arraySumarraySlicetotal_exclude 1 i as total_num_exclude什么意思
这是一个SQL语句中的条件判断语句,根据变量#select_type#的值来决定查询表中的数据。如果#select_type#的值为1,则查询total_num列的数据;如果#select_type#的值不为1,则查询total_exclude列中从第1行到第i行的数据,并将这些数据进行求和操作,最终得到的结果作为total_num_exclude列的值。
原文地址: http://www.cveoy.top/t/topic/g0Qm 著作权归作者所有。请勿转载和采集!