ÎÒÒªÓÃSQlÓï¾äÈ¡µÃA£¬B×ֶεĺ͵Ä×î´óÒ»ÌõÊý¾Ý£¬Ò²¾ÍÊǵڶþÌõ1+55=56£¬»òÕ߯äËü°ì·¨£¡ÏÈлÁË£¡select A.num,B.num from A,B where (A.num+B.num) in(select max(A.num+B.num) from A,B) select * from ±í1 t where not exists(select 1 from ±í1 where (A+B)>(t.A+t.B)); select * from ±í1 where A+B=(select max(A+B) from ±í1); µÚ¶þÌõÊDz»ÊÇ2+55°¡£¿Ã»¿´Ã÷°× SQL code:
select * from ±íÒ» where exists(select 1 from ±íÒ» where right(A,INSTR(A,''))>where right(b,INSTR(b,'')))
¶ö д´íÁË SQL code:
select from ±íÒ» t where right(A,INSTR(A,''))+right(B,INSTR(B,''))>right(t.A,INSTR(t.A,''))+right(t.B,INSTR(t.B,''))
SQL code:
select *from ±íÒ» t where ( right(A,INSTR(A,''))+right(B,INSTR(B,'')))>(right(t.A,INSTR(t.A,''))+right(t.B,INSTR(t.B,'')));