我使用的是python和oracle11g速成版。 有时11g速成版会给出错误的结果。所以我想使用livesql来获得正确的结果。
请帮助,有没有任何方法可以连接到livesqloracle而不安装oracle。
drop table t5;
create table t5 (A int not null, b int not null,c int, primary key(a,b));
insert into t5 values (0,0,0);
insert into t5 values (0,200,NULL);
insert into t5 values (1,1,1);
insert into t5 values (1,201,NULL);
insert into t5 values (2,2,2);
insert into t5 values (2,202,NULL);
insert into t5 values (3,3,3);
insert into t5 values (3,203,NULL);
insert into t5 values (4,4,4);
insert into t5 values (4,204,NULL);
drop table t6;
create table t6 (A int not null, b int not null,c int, primary key(a,b));
insert into t6 values (0,0,0);
insert into t6 values (0,200,NULL);
insert into t6 values (1,1,1);
insert into t6 values (1,201,NULL);
insert into t6 values (2,2,2);
insert into t6 values (2,202,NULL);
insert into t6 values (3,3,3);
insert into t6 values (3,203,NULL);
insert into t6 values (4,4,4);
insert into t6 values (4,204,NULL);
select * from t5 right join t6 on t5.a=-1 and t5.a=t6.a where t5.a<0 or t5.a=t6.a ;
(None, None, None, 3, 203, None)
(None, None, None, 3, 3, 3)
(None, None, None, 1, 201, None)
(None, None, None, 1, 1, 1)
(None, None, None, 2, 202, None)
(None, None, None, 2, 2, 2)
(None, None, None, 0, 200, None)
(None, None, None, 0, 0, 0)
(None, None, None, 4, 204, None)
(None, None, None, 4, 4, 4)
--- 10 row(s) selected.
Actually expecting 0 rows
我实际上使用了11g速成版,它安装在我的系统中。 通过比较结果livesqloracle给出正确的结果(https://livesql.oracle.com/)
LiveSQL不是一个可以连接到的数据库。在
它是一个运行在Oracle云中的数据库,您可以借用它来运行任何Oracle SQL或PL/SQL—通过浏览器/web界面。在
如果您希望Oracle的本地副本能够在不需要安装或维护Oracle数据库的情况下工作,那么我们的VirtualBox appliance就可以做到了。在
您只需安装VirtualBox,下载设备,导入它,然后单击“开始”按钮。在
运行时,您将运行Oracle Database 12cr2的副本,其中包含一些示例数据,Oracle SQL Developer&APEX已经安装并准备就绪。在
我将更详细地讨论它。在
完成后,只需删除文件。没有要清理的注册表,没有要卸载的。在
所有这些都是免费的-用于学习/教育目的。在
相关问题 更多 >
编程相关推荐