TA的每日心情 | 衰 2021-2-2 11:21 |
---|
签到天数: 36 天 [LV.5]常住居民I
|
沙发
发表于 2014-11-07 14:52:18
|只看该作者
CREATE TABLE `score` (. ^, @6 S: z' r
`KHSCOREID` int(11) NOT NULL AUTO_INCREMENT,- ^8 V/ T1 W, K( Z7 y
`KHRYID` int(11) DEFAULT NULL,6 h8 Y y0 P2 ~( E6 b
`BKHRYXM` varchar(20) CHARACTER SET latin1 DEFAULT NULL,
! L$ F8 d$ M' J5 ^2 b `BKHRYID` int(11) DEFAULT NULL,
/ k- ^0 _) {6 |: l T5 C- X8 c1 Z `PDBZF` int(11) DEFAULT NULL,
" w' q( t6 ]( g: b `NLBZF` int(11) DEFAULT NULL,
0 F1 Y+ x M5 S PRIMARY KEY (`KHSCOREID`)6 V1 E. z4 K2 F6 {. I
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 CHECKSUM=1 DELAY_KEY_WRITE=1 ROW_FORMAT=DYNAMIC
5 A! c" a" K G1 Q o: a
6 ?' x3 ^6 v( R1 @* J* t- gsql :SELECT BKHRYXM,(SUM(NLBZF)- MAX(NLBZF)-MIN(NLBZF))/(COUNT(*)-2) FROM score GROUP BY BKHRYID |
|