---²âÊÔÊý¾Ý--- if object_id('[table]') is not null drop table [table] go create table [table]([ÐÕÃû] varchar(4),[ѧ¿Æ] varchar(4),[·ÖÊý] int) insert [table] select 'ÕÅÈý','ÓïÎÄ',65 union all select 'ÕÅÈý','Êýѧ',80 union all select 'ÀîËÄ','ÓïÎÄ',75 union all select 'ÀîËÄ','Êýѧ',81 union all select 'ÀîËÄ','ÎïÀí',67 union all select 'ÍõÎå','ÓïÎÄ',81 union all select 'ÍõÎå','Êýѧ',85 union all select 'ÍõÎå','ÎïÀí',91 union all select '²ÌÁù','ÓïÎÄ',83 union all select '²ÌÁù','Êýѧ',90 union all select '²ÌÁù','ÎïÀí',92 SQL code: select name from tb t where not exists(select 1 from tb where name=t.name and ÓïÎÄ<=70 and Êýѧ<=80 and ÎïÀí<=90)
select count(1) from FX_RETURNBOOKCHECKLIST fxreturnbo0_ where fxreturnbo0_.BOOKID='164 ' AND fxreturnbo0_.RETURNID='00025.S0000001' ÉÏÃæÒ»¸ö¼òµ¥µÄSQL,Ö´ÐÐʱ¼ä2.6à ......
ÔËÐк󱨴íÎóÈçÏ£º ´íÎóÀàÐÍ£º Microsoft OLE DB Provider for ODBC Drivers (0x80040E14) [Microsoft][ODBC Microsoft Access Driver] Óï·¨´íÎó (²Ù×÷·û¶ªÊ§) ÔÚ²éѯ±í´ïʽ 'Êýѧ + 4where ÐÕÃû='Íõ¾²'' ÖС£ ......