xx1=[物]
xx2=[化]
xx3=[生]
SELECT * from 样表 WHERE '0'$必修科数 OR (xx1$必修科目 AND xx2$必修科目 AND xx3$必修科目 AND '3'$必修科数) OR ('2'$必修科数 AND ((xx1$必修科目 and xx2$必修科目) OR(xx3$必修科目 and xx2$必修科目) OR (xx1$必修科目 and xx3$必修科目))) OR ('1'$必修科数 AND xx1$必修科目) OR('1'$必修科数 AND xx2$必修科目)OR('1'$必修科数 AND xx3$必修科目) into table 可填报志愿的清单
xx1=[物]
xx2=[化]
xx3=[生]
SELECT * from 样表 WHERE '0'$必修科数 OR (xx1$必修科目 AND xx2$必修科目 AND xx3$必修科目 AND '3'$必修科数) OR ('2'$必修科数 AND ((xx1$必修科目 and xx2$必修科目) OR(xx3$必修科目 and xx2$必修科目) OR (xx1$必修科目 and xx3$必修科目))) OR ('1'$必修科数 AND xx1$必修科目) OR('1'$必修科数 AND xx2$必修科目)OR('1'$必修科数 AND xx3$必修科目) into table 可填报志愿的清单
是有点问题,这样呢
*可填报
SELECT 必修科数,必修科目 FROM 样表 WHERE (LENC(CHRTRANC(必修科目,", ",""))-LENC(CHRTRANC(必修科目,", 物生地","")))>=VAL(必修科数)
*不可填报
SELECT 必修科数,必修科目 FROM 样表 WHERE !(LENC(CHRTRANC(必修科目,", ",""))-LENC(CHRTRANC(必修科目,", 物生地","")))>=VAL(必修科数)