update sichuan_lte_omc_para_hw a set
(
a.threshold2interfreq
)=(
select
c.InterFreqHoA2ThdRsrp
from hwlte_INTERFREQHOGROUP c where a.dn =substr(c.dn,'1',instr(c.dn,',',1,4)+15)
and c.InterFreqHoA2ThdRsrp = a.threshold2interfreq
)
这个oracle SQL操作语句怎么会报出单个子查询返回多个行是什么意思啊?求大神解答下 谢谢!
答案:2 悬赏:20
解决时间 2021-02-21 04:01
- 提问者网友:朱砂泪
- 2021-02-20 10:18
最佳答案
- 二级知识专家网友:青灯壁纸妹
- 2021-02-20 10:44
更新sichuan_lte_omc_para_hw的某笔数据中,在子查询中,能查出多笔记录。
a.threshold2interfreq
)=(
这里的查询返回的数据有多笔
)
a.threshold2interfreq
)=(
这里的查询返回的数据有多笔
)
全部回答
- 1楼网友:伤口狠精致
- 2021-02-20 11:13
第一种:直接用语句
date1与date2是字符串
sql.tet:='select * from table where 字段 between '+quotedstr(date1)+' and '+quotedstr(date2);
date1与date2是日期
sql.tet:='select * from table where 字段 between '+quotedstr(datetimetostr(date1))+' and '+quotedstr(datetimetostr(date2));
第二种:用参数形式:
sql.tet:='select * from table where 字段 between :d1 and :d2';
parameters.parambyname('d1').value:=date1;
parameters.parambyname('d2').value:=date2;
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯