Nitrogen-doped silicon quantum dots (N-SiQDs) with a quantum yield of up to 37.8% were simply synthesized using inexpensive and readily available silica as the silicon source. Based on the internal filter effect (IFE), both oxytetracycline (OTC) and tetracycline (TC) can effectively and rapidly quench the fluorescence of N-SiQDs at 380nm. However, interestingly, the accompanied formation of a new complex of OTC with N-SiQDs could emit fluorescence at 505nm, resulting in a gradualcolor change of the sensor from blue to yellow under the irradiation of 365nm UV lamp. Thus, a visual semi-quantitative detection of OTC was realized. In contrast, based on the aggregation-induced luminescence (AIE) effect, chlortetracycline (CTC) linearly enhanced the fluorescence intensity of N-SiQDs, which can effectively reduce other interfering signals, and can significantly improve the sensitivity and selectivity. Hence, a low limit of detection of 47nM for CTC was obtained. On account of the three distinctly different phenomena and mechanisms of N-SiQDs sensor exhibited towards OTC, TC, and CTC, a novel sensing method for discriminating and selectively measuring OTC, TC, and CTC in food was developed.