由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - 加了EMAIL “IS NOT NULL”, 结果还是包括一些email "blank"的,帮忙分析
相关主题
一个奇怪的问题where can I download SQL Sever? thanks (null)
A simple question for SQL, seeking helpmerge 同步复制
怎么用Update实现这个?ORA-01400 and ORA-06512
请教三个Key的property,How to concatenate NULL value with a string in SQL Server?
Questions on SQLRe: How to concatenate NULL value with a string in SQL Server?
Re: [转载] what's the equivalent of 'minus' (oracle) in access?oracle trigger question
Can someone tell me price of whole set of GemStone?(NULL)[转载] 请问怎样处理CHECK BOX在SERVLET中的参数传递, 谢了!
Urgent help needed, please请教如何用alter table 来加一个not null的列
相关话题的讨论汇总
话题: email话题: null话题: blank话题: records话题: 结果
进入Database版参与讨论
1 (共1页)
z**********8
发帖数: 2049
1
一个很简单的query,就是去掉所有没有EMAIL地址的,结果发现,还是有不少EMAIL是
BLANK的RECORDS在里面,RESULT SET.
请问,可能是啥原因?
还有,绝大多数的RECORDS是按照排序排列的,但是有几个没有,又可能是啥原因?谢
s**********o
发帖数: 14359
2
where email is not null and ltrim(rtrim(email)) <>''
原则上讲还要有and email like '%@%'
n****f
发帖数: 3580
3
试试:
where trim(email) is not null
email如果定义成char(n), 看上去空的也不是null的, 而是由'blank'字符。
1 (共1页)
进入Database版参与讨论
相关主题
请教如何用alter table 来加一个not null的列Questions on SQL
in DBMS, is NULL=NULL valid?Re: [转载] what's the equivalent of 'minus' (oracle) in access?
mysql C APICan someone tell me price of whole set of GemStone?(NULL)
Null in C and Null in OracleUrgent help needed, please
一个奇怪的问题where can I download SQL Sever? thanks (null)
A simple question for SQL, seeking helpmerge 同步复制
怎么用Update实现这个?ORA-01400 and ORA-06512
请教三个Key的property,How to concatenate NULL value with a string in SQL Server?
相关话题的讨论汇总
话题: email话题: null话题: blank话题: records话题: 结果