select stuName,stuAge from stuInfo
group by stuName,stuAge
having(count(stuName || stuAge)<2);
但這里不起作用
select count(stuName) from stuInfo where stuName='張2';
能查詢出3條重復的記錄
uj5u.com熱心網友回復:
select * from stuInfo where stuName='張2';這樣查詢一下,相信你一看資料,就知道什么原因了。
uj5u.com熱心網友回復:
你先看看原資料。。。uj5u.com熱心網友回復:
看看以下陳述句顯示什么select stuName,stuAge,stuName || stuAge,count(stuName || stuAge) from stuInfo
group by stuName,stuAge
having(count(stuName || stuAge)<2);
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/68233.html
標籤:開發
上一篇:關于kettle7.1 sqlserver轉oracle的使用
下一篇:增加列后,默認精度改變
