日期:2014-05-16  浏览次数:20509 次

学生信息管理系统知识点大盘点 1

(黄色字体为自定义函数,绿色字体为注释)

1.ComboClassno  AddItem不重复的条目

  都知道select 语句是这样的:

        Select  [all|distinct]    [top n]     <select_list> 

                     [Into new_table]

       From  

       where

       Group by

       Having

       Order by         

 

现数据库的表Student_info中有1班和2班各两名同学,我需要从中挑选出班号12,而不是得到1,1,2,2,所以就不能用"select * from student_info where grade=' " & comboGrade.Text &"'"

所以需要这样查询: