日期:2014-05-17  浏览次数:20717 次

各位精通SQL的大哥大姐进来帮个忙
在sql中 表名为VIP_card 只要VIP里面phone(电话号码)数据 要PHONE里面的非空的全部电话号码 语句怎么写

------解决方案--------------------
select phone from VIP_card t where t.phone is null
------解决方案--------------------
select phone from VIP_card where phone is not null;
------解决方案--------------------
SQL code

select phone where VIP_card where phone is not null

------解决方案--------------------
用is not null 判断就可以了
SQL code
select * from VIP_card  where phone is not null

------解决方案--------------------
SQL code
可以通过第三方工具,TOAD,PL/SQL DEVELOPER

------解决方案--------------------
你用什么工具查询的呢 一般除了SQL plus都有导出数据到excel的功能
------解决方案--------------------

------解决方案--------------------
SQL对应的有查询分析器和企业管理器。用企业管理器进行数据的导入和导出吧!选择数据库后,右击 导出数据,然后选择要导出的表 就行了!