这样的要求能不能用一条sql语句完成? select a,count(*) from table group by a如果记录集合多于1就是又不同的 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select count(*) into a from table group by aif a >0 then --有相同的值 Declare A Number;Begin Select Count(*) Into A From Table Group by A; IF A>1 Then dbms_output.put_line('The same result!'); elsif A=0 Then dbms_output.put_line('The different result!'); End IF;End; 一个多表update的语句 orcale存储过程中的异常 请高手帮忙写个oracle语句 oracle insert blob 一个表创建索引要注意哪些啊 求一个更新plsql语句 请大家指点(导出,同义词) 备份问题,请指教 PreparedStatement 和绑定变量哪个效率更高 TO_CHAR(数值型数据)的问题,谢谢! 关于sqlldr与触发器的问题 怎么格式化日期?
if a >0 then --有相同的值
A Number;
Begin
Select Count(*)
Into A
From Table
Group by A;
IF A>1 Then
dbms_output.put_line('The same result!');
elsif A=0 Then
dbms_output.put_line('The different result!');
End IF;
End;