我正在尝试解决以下问题:
我想做一个选择,当结果为空时,它应该被替换为“空”,否则结果的所有行都应该在那里。喜欢:
if (select has no result)
{
One Line as result with 'no result'
}
else
{
post every line of the select result
}
那是我的尝试:
select case when count(*) = 0
then 'no Entry'
else Members --all Members should be here
END as Member
from tableMember where Membergroup = 'testgroup';
感谢所有可以帮助我的人!
请向我展示在Oracle中使用查询所需的完整代码