楼主: cun1531146322
|
1927
4
[问答] 如何利用R软件按条件删除ORACLE数据库表中的某些行 |
本科生 46%
-
|
回帖推荐可已删除
create table a (b number);
begin for i in 1..10 loop
insert into a values (i);
commit;
end loop;
end;
select * from a; 表a里有1到10的数字。
在R中执行:
> library(RODBC)
> c_lnyx sqlQuery(c_lnyx,'select * from a')
B
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
10 10
> sqlQuery(c_lnyx,'delete from a where a.b=1')
character(0)
> sqlQuery(c_lnyx,'del ...
| ||
| ||
京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明 免责及隐私声明