V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  id4alex  ›  全部回复第 23 页 / 共 23 页
回复总数  442
1 ... 14  15  16  17  18  19  20  21  22  23  
2015-11-05 22:21:22 +08:00
回复了 yxwzaxns 创建的主题 问与答 没有思路,跪求一段 sql 语句
---现在我想查询出表里内容为 null 的
select * from user where id not in (select id from user where field1 is not null and field2 is not null .... and fieldn is not null)
shell 里面的一段代码


###所有节点修改 hostname####
[root@localhost ~]# for i in `grep node /etc/hosts | awk '{print $2}'`; do ssh -o StrictHostKeyChecking=no $i "sed -i '/HOSTNAME=/d' /etc/sysconfig/network;echo \"HOSTNAME=$i\" >>/etc/sysconfig/network"; done;
1 ... 14  15  16  17  18  19  20  21  22  23  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   940 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 15ms · UTC 20:24 · PVG 04:24 · LAX 12:24 · JFK 15:24
Developed with CodeLauncher
♥ Do have faith in what you're doing.