如何在SQL中删除空值行 [英] How to remove Null Valued Rows in SQL

查看:131
本文介绍了如何在SQL中删除空值行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个SQl查询
我正在其中
第一行的值为NULL
喜欢

Hi I have a SQl Query
in which I am Getting
The First Row Values as NULL
Like

NULL   NULL             NULL         NULL
1        2               3            4
23       56              67           89


我该如何禁止Null值.
或值为空的行
请协助

[edit]添加了文本块[/edit]


how can I suppres the Null values .
or null valued Rows
Please Assist

[edit]text block added[/edit]

推荐答案

在查询中添加where子句:
Add a where clause to your query:
select col1,col2,col3 from [tablename]
where (col1 is not null and col2 is not null and col3 is not null) 


这篇关于如何在SQL中删除空值行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆