摘要: 1、将两个表连接时,如果要显示具有相同列的属性,要指定是哪个表的列:string sql = "select 姓名=sName,学号=studentInfo.sNo,语文=sChinese from studentInfo join studentScore on studentScore.sNo=studentInfo.sNo ";2,查询某列是否有相同的值:(1)按照姓名分组(就是查询的那一列),查找出个数大于1的姓名和个数。select name,count(*) from spt_values group by namehaving count(*)>1;3 阅读全文
posted @ 2012-06-10 11:30 大数据工程师康爸 阅读(304) 评论(0) 推荐(0)