#openGauss #入门 #安装 #数据库 #开源
知识来源:docs-opengauss.osinfra.cn/zh/
-
count(*)
描述:返回表中的记录行数。
返回类型:BIGINT
示例:
sql 代码解读复制代码openGauss=# CREATE TABLE count_t1(a int, b int); openGauss=# INSERT INTO count_t1 VALUES (NULL,1),(1,2),(2,3),(3,4),(4,5); openGauss=# SELECT COUNT(*) FROM count_t1; count ------- 5 (1 row) openGauss=# DROP TABLE count_t1;
#openGauss #入门 #安装 #数据库 #开源