如何在postgres里使用where排除条件

 时间:2026-02-16 13:15:49

1、sudo su postgres

进入postgres。

如何在postgres里使用where排除条件

2、\c test

\dt

连接数据库。

如何在postgres里使用where排除条件

3、SELECT * FROM person;

选取数据查看一下所有数据。

如何在postgres里使用where排除条件

如何在postgres里使用where排除条件

4、SELECT * FROM person;

WHERE gender = "Male";

根据条件可以筛选数据。

如何在postgres里使用where排除条件

如何在postgres里使用where排除条件

5、SELECT * FROM person;

WHERE gender = "Male" AND country_of_birth = "China";

WHERE还可以和AND配合。

如何在postgres里使用where排除条件

如何在postgres里使用where排除条件

6、还可以用括号选定多个数据判断。

如何在postgres里使用where排除条件

如何在postgres里使用where排除条件

7、即使是多个数据也是没问题的。

如何在postgres里使用where排除条件

如何在postgres里使用where排除条件

  • eclipse怎么重设项目编码?
  • excel中使用vba关闭excel的两种方法
  • 电脑睡眠按钮的功能怎么改为关闭显示器?
  • oracle误删表如何恢复?oracle闪回表功能。
  • jsp页面360浏览器兼容模式不兼容问题解决方法
  • 热门搜索
    微粒贷怎么申请 京东怎么分期付款 银行存款利息怎么算 亲爱的你怎么不在我身边 半月板损伤怎么治疗 iphone怎么刷机 帕森太阳镜怎么样 怎么格式化电脑 显示器亮度怎么调 汤圆怎么做