Topic: SQL ServerÈçºÎÁÐֵΪ¿ÕµÄÊý¾Ý |
Print this page |
1.SQL ServerÈçºÎÁÐֵΪ¿ÕµÄÊý¾Ý | Copy to clipboard |
Posted by: lixaohan Posted on: 2005-07-01 20:10 SQL ServerÈçºÎÁÐֵΪnuLLµÄÊý¾Ý°¡¡£ ±í½á¹¹ÈçÏÂ: T1 T2 1 NULL 2 2004-10 3 NULL ÎÒÏëÒªT1Ϊ1¡¢3µÄÄǶþÌõ¼Ç¼¡£ ÎÒÓÃselect t1 from............ where t2=null ²é²»³öÀ´°¡¡£ ËÄܸæËßÎÒ°¡¡£Ð»Ð»ÁË! |
2.Re:SQL ServerÈçºÎÁÐֵΪ¿ÕµÄÊý¾Ý [Re: lixaohan] | Copy to clipboard |
Posted by: ɳĮСÄñ Posted on: 2005-07-13 10:28 where t2=null ²é²»³öÀ´°¡! ÄãÓÃwhere t2=null µ±È»²é²»³öÁË.Äã²éµÄÊÇNULL ²»ÊÇ¿Õ.¿ÕÒªÓÃwhere t2='' |
3.Re:SQL ServerÈçºÎÁÐֵΪ¿ÕµÄÊý¾Ý [Re: ɳĮСÄñ] | Copy to clipboard |
Posted by: why Posted on: 2005-07-13 12:16 ɳĮСÄñ wrote: Please provide accurate information! If you aren't sure, test it before you post. Be responsible! It should be WHERE T2 IS NULL |
4.Re:SQL ServerÈçºÎÁÐֵΪ¿ÕµÄÊý¾Ý [Re: lixaohan] | Copy to clipboard |
Posted by: ɳĮСÄñ Posted on: 2005-07-13 12:55 ¤Ï¤¤£¡¤ï¤«¤ê¤Þ¤·¤¿£¡ ¤ï¤¿¤·¤¬ÒŠ¤ë¤Æ¤¯¤ë¡¢(¤Ä¤¤¤Ç¤Ë´ð¤¨¤ë¤Á¤ç¤Ã¤È )¡¢´Î»Ø¤ò½U¤¿ááÔ‡òY¤·¤Þ¤¹¡¢¤Þ¤¿°kËͤ·¤Þ¤¹£¡ |
5.Re:SQL ServerÈçºÎÁÐֵΪ¿ÕµÄÊý¾Ý [Re: lixaohan] | Copy to clipboard |
Posted by: ɳĮСÄñ Posted on: 2005-07-13 14:33 ÔÚOracleÖÐͨ¹ý select t1 from where t2=' ' ×¢: t2=' ' ÒýºÅÖмä¼Ó¿Õ¸ñ |
6.Re:SQL ServerÈçºÎÁÐֵΪ¿ÕµÄÊý¾Ý [Re: ɳĮСÄñ] | Copy to clipboard |
Posted by: why Posted on: 2005-07-13 20:31 ɳĮСÄñ wrote: 1. In Oracle, ' ' is an empty string, not NULL. 2. The post is about SQL Server, not Oracle. |
7.Re:SQL ServerÈçºÎÁÐֵΪ¿ÕµÄÊý¾Ý [Re: lixaohan] | Copy to clipboard |
Posted by: q_yuan Posted on: 2005-09-27 09:19 <color=black>£¤¤¤¤¤¤£¥©</color> |
8.Re:SQL ServerÈçºÎÁÐֵΪ¿ÕµÄÊý¾Ý [Re: lixaohan] | Copy to clipboard |
Posted by: q_yuan Posted on: 2005-09-27 09:22 [color = black]select t1 from .. where t2 is null [/color] |
9.Re:SQL ServerÈçºÎÁÐֵΪ¿ÕµÄÊý¾Ý [Re: lixaohan] | Copy to clipboard |
Posted by: mwsxh Posted on: 2005-10-07 23:21 ºÇºÇ¡« |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. ÃöICP±¸05005120ºÅ-1 ¿Í·þµç»° 18559299278 ¿Í·þÐÅÏä 714923@qq.com ¿Í·þQQ 714923 |