PowerBuilder中count(*)是什么意思

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/27 18:30:54
PowerBuilder中count(*)是什么意思

PowerBuilder中count(*)是什么意思
PowerBuilder中count(*)是什么意思

PowerBuilder中count(*)是什么意思
统计某数据表在某条件下的记录数.
select Count(*) Into :li_Count from table1
表示要获得table1表中总记录数,并将该记录数赋值给变量li_Count
select Count(*) Into :li_Count From table where col01='AAA';
表示要获得table1表中所有col01字段等于'AAA'的记录数,并将该记录数赋值给变量li_Count