参考代码
Dim cmd As new SQLCommandcmd.CommandText = "select cdefinename from defineset where ctype='客户'"Dim dt As DataTable = cmd.ExecuteReaderFor Each dr As DataRow In dt.DataRows msgbox(dr("cdefinename"))Next