关键词提取_关键词

关键词提取

The distinct keyword is used with SELECT statement to retrieve unique values from the table. Distinct removes all the duplicate records while retrieving records from any table in the database.

SELECT语句一起使用distinct关键字从表中检索唯一值。 从数据库中任何表中检索记录时, Distinct除去所有重复记录。

DISTINCT关键字的语法 (Syntax for DISTINCT Keyword)

SELECT DISTINCT column-name FROM table-name;

使用DISTINCT关键字的示例 (Example using DISTINCT Keyword)

Consider the following Emp table. As you can see in the table below, there is employee name, along with employee salary and age.

考虑以下Emp表。 如您在下表中所见,其中有员工姓名 ,以及员工工资年龄

In the table below, multiple employees have the same salary, so we will be using DISTINCT keyword to list down distinct salary amount, that is currently being paid to the employees.

在下表中,多个雇员的工资相同,因此我们将使用DISTINCT关键字列出当前正在支付给雇员的不同工资金额。

eidnameagesalary
401Anu225000
402Shane298000
403Rohan3410000
404Scott4410000
405Tiger358000
开斋节 名称 年龄 薪水
401 阿努 22 5000
402 谢恩 29 8000
403 罗汉 34 10000
404 史考特 44 10000
405 35 8000
SELECT DISTINCT salary FROM Emp;

The above query will return only the unique salary from Emp table.

上面的查询将仅返回Emp表中的唯一薪水。

salary
5000
8000
10000
薪水
5000
8000
10000

翻译自: https://www.studytonight.com/dbms/distinct-keyword.php

关键词提取

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值