PB中SQL语句的写法问题

来源:百度知道 编辑:UC知道 时间:2024/09/22 07:24:19
PB中SQL语句的写法问题

标签: sql, 问题, 语句

select distinct count(*) into :row in (select distinct book.tslb from book);
意思就是从一个select的结果中slect出count总数来
不知道是哪里错了

distinct 是显示唯一用的,你这里不用加!

select语句语法有问题,应该这么写
select count(*) into :row
from (select distinct book.tslb from book)t1;
distinct 可加可不加,根据你的情况处理