ORACLE 删除表中数据的sql语句求助
发布网友
发布时间:2022-04-29 05:06
我来回答
共1个回答
热心网友
时间:2022-04-10 08:11
正确答案:
delete
from
rt_switch_monitor
where
alarm_state
=
'165'
and
cur_value
=
'1'
and
parent_description
=
'开封地区/明河变/斯威夫特E40电源/明河变斯威夫特E40电源';
commit;
按照你的写法并纠正你的错误语句,应该为:
delete
from
rt_switch_monitor
t
where
t.alarm_state
=
'165'
or
t.cur_value
=
'1'
t.parent_description
in
(select
t.parent_description
from
rt_switch_monitor
t
where
t.parent_description
=
'开封地区/明河变/斯威夫特E40电源/明河变斯威夫特E40电源');
记得给我分!!!要知道我给别人培训,收的费用是相当高的(给你纠正只收悬赏分)