search
HomeComputer TutorialsComputer KnowledgeWhat are the common database functions?

What are the database functions? anyone there

There is Funciton, which is a function

There is Procedure, which is a stored procedure

There is a Package, which is a code package (including head and body, which can be understood as a package that defines multiple stored procedures or functions)

There are Types, that is, custom data types

There are Triggers, that is, triggers

There are Jobs, that is, database jobs (periodic execution)

There is Table, which is a table (tables include ordinary tables, temporary tables, and partition tables)

There is Index, which is the index

There is Constraint, which is a constraint (that is, what constraints must be met for a certain column in a table)

There is a View, that is, a view

There is Materialized View, called "materialized view", which is a bit complicated.

There is Sequence, called sequence number.

There is User, called User

There is Profile, called user properties file (used to limit the database resources occupied by each user)

There are Synonyms, called "synonyms" (used to conveniently access objects under other users)

There is a Database link called "link database" (used to access Oracle databases on other machines)

There is TableSpace called table space (used to store table data)

There is CURSOR called cursor, which is used in stored procedures to traverse data.

Database function count

Count function

Calculate the number of records returned from the query.

grammar

Count(expr)

Where expr represents a string expression that either identifies a field that contains the data to be calculated; or is an expression that uses the data in this field to perform the calculation. The operand in expr may include a table field name, a constant, or a function (which may be intrinsic or user-defined, but is not an SQL aggregate function). You can calculate any kind of data, including text data.

illustrate

You can use Count to calculate the number of records for the next level query. For example, you can use Count to count the number of orders for goods shipped to a specified country.

Although expr can perform calculations on a field, Count simply counts the number of records. It doesn't matter what value is saved in the record.

The Count function does not count records with Null fields unless expr is the asterisk (*) wildcard character. If asterisk is used, Count will count the total of all records, including records with Null fields. Count(*) is much faster than Count([Column Name]).

The above is the detailed content of What are the common database functions?. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:Excel办公网. If there is any infringement, please contact admin@php.cn delete
Linux vs Mac: How to Install Linux on Mac - MiniToolLinux vs Mac: How to Install Linux on Mac - MiniToolMay 14, 2025 am 01:21 AM

What’s the difference between Linux and Mac? Do you want to install Linux on Mac? This post from php.cn will show you all. You can refer to this guide to dual boot Linux and macOS.

What Is MHTML & What Are the Differences Between It and HTML - MiniToolWhat Is MHTML & What Are the Differences Between It and HTML - MiniToolMay 14, 2025 am 01:20 AM

What is MHTML? How to open or view it? What are the differences between it and HTML? How to convert MHTML to HTML? If you are looking for the answers to the above questions, you can refer to this post from php.cn.

Solve Deleted Files Keep Reappearing in Windows 10 - MiniToolSolve Deleted Files Keep Reappearing in Windows 10 - MiniToolMay 14, 2025 am 01:19 AM

This article focuses on the topic that deleted files keep reappearing in Windows 10, introducing the responsible reasons and feasible solutions.

How to Deactivate Windows 10/11 by Uninstalling Product Key - MiniToolHow to Deactivate Windows 10/11 by Uninstalling Product Key - MiniToolMay 14, 2025 am 01:18 AM

This post teaches you how to deactivate Windows 10/11 by removing product key or license. You can use that product key to activate another computer later if you want. For more computer tips and tricks, you can visit php.cn Software official website.

Instant Fixes for Error 0164: Memory Size DecreasedInstant Fixes for Error 0164: Memory Size DecreasedMay 14, 2025 am 01:15 AM

Some Windows users report that they are prompted by the error 0164 memory size decreased screen every time they boot the computer. What’s wrong with it? If you are in the same boat, congratulations! You’ve come to the right place! In this post from p

Best Fixes: This Page Isn't Available Right Now on Facebook - MiniToolBest Fixes: This Page Isn't Available Right Now on Facebook - MiniToolMay 14, 2025 am 01:11 AM

This Page Isn’t Available Right Now is an error message you may encounter when you visit Facebook using your web browser. In this php.cn post, we will list some effective methods you can try to get rid of this error.

Windows 11 KB5010414 Was Released with Many New Features - MiniToolWindows 11 KB5010414 Was Released with Many New Features - MiniToolMay 14, 2025 am 01:09 AM

Windows 11 KB5010414, a new optional update for Windows 11, is available now. Do you know what’s new and fixes in it? php.cn Software will show you this information in this post. Besides, it also tells you how to download and install it on your compu

How to Change Windows Update Settings in Windows 11? - MiniToolHow to Change Windows Update Settings in Windows 11? - MiniToolMay 14, 2025 am 01:08 AM

Want to pause Windows Update on your Windows 11 computer? Want to set active hours to arrange a computer restart to complete the update process? You need to know how to change Windows Update settings in Windows 11. This php.cn post will show you the

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools