为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】:8
【问题描述】*:变量赋值问题
DECLARE
a INT;
b INT;
c INT;
BEGIN
SELECT DM_countDept=COUNT(DEPTCODE), DM_COUNTWARD=COUNT(WardCode),
DM_countPGroup=COUNT(PGroupCode)
FROM KJMID.table;
END;
在达梦数据库中不能这样呢赋值么?执行报错说语法错误?
请参数oracle类似的语法
select 字段名 into 变量名 from xxx
DECLARE
a INT;
b INT;
c INT;
BEGIN
SELECT count(),count(),count(*) into a ,b,c from dual;
print(a);
print(b);
print(c);
END;