乙個小問題。

2021-06-18 21:36:36 字數 767 閱讀 7118

drop table student;

create table student(sno number(10), sname varchar2(10),sage int);

insert into student  values(1,'aa',21);

insert into student  values(1,'aa',21);

insert into student  values(2,'bb',22);

insert into student  values(3,'cc',23);

insert into student  values(3,'cc',23);

insert into student  values(3,'cc',23);

select * from student a where a.rowid >(select min(b.rowid) from student b where a.sno=b.sno );

select * from student where rowid not in (select min(b.rowid) from student a,student b where a.sno=b.sno group by b.sno);

2句查出的結果一樣,第二句很好理解。我納悶的就是第一句為什麼不是 not in 而是》 .

第一句執行了,也就是說(select min(b.rowid) from stundent b where a.sno=b.sno)返回的是單值,這個值跟()外面的 from 表有關。

乙個小問題

error c2679 binary no operator defined which takes a right hand operand of type class smanip int or there is no acceptable conversion 除錯了好久,就是找不出問題在哪。...

乙個小問題

設機器字長w ww位元,u w w u cu w,w uc u w,w uc。將w ww分為c cc個連續長度為u uu位元的區間,稱為u uu區間。實現操作 對於乙個機器字x xx,如果乙個u uu區間非0,則將區間最右bit置1,其餘為0。要求演算法時間為o 1 o 1 o 1 考慮異或操作。對...

shtml的乙個小問題

新建body.shtml 其 如下 我組成身體 然後建它引用的兩個 html 頁面,head.html 的 如下 我組成頭部 foot.html 和這個問題無關就不貼了,然後瀏覽器訪問 body.shtml 得到的頁面如下圖 恩,沒毛病!等等,怎麼在 我組成頭部 前面有個空格?檢視響應正文我們 看到...