3.
在sqlplus中不能这样写6.
就是这样写的,难道不行吗?
在sqlplus中不能这样写6.
就是这样写的,难道不行吗?
解决方案 »
- 语句执行需要4分多钟,不知道怎么优化
- 数据库设计
- ORA-01407: 无法更新 ("SCOTT"."TEACHERS"."EMAIL") 为 NULL
- Looking for Oracle developer - RMB 20K/month
- **************有关备份与恢复的问题****************
- 求 Oracle I-Learning 的开发资料
- oracle中使用动态游标
- 如何在oracle 查询sqlserver的某一列
- 哪里有oracle的sql语法的使用中文手册!
- Oracle Change Notification 延时严重怎么解决?
- 请教用util_file上传文件
- Oracle9i中,关于Enterprise Manager Concole的问题.
如果newtable表已存在,则插入数据
insert into newtable select * from people;如果newtable表不存在,则需在建表时同时插入数据
create table newtable as select * from people;
create or replace procedure a is
d date;
begin
select sysdate into d from dual;
end a;
另外说明的一点,你选取的字段的个数要和into后面的变量的个数相同6,要说明的一点,如果你是Oracle9i的用户,使用sys用户连接的时候,必须以sysdba的方式连接比如:connect sys/change_on_install@orcl as sysdba如果连接远程的服务器,只要在你的tnsname.ora文件中指定相应的信息,就可以使用@符号进行连接了
这是sqlserver的写法。
oracle的写法是:
create table newtable as select * from people;
4.不明白你的意思
insert into newtable select * from people;
创建表时
create table newtable as select * from people;
6.
sqlplus username/password@sid
insert into newtable select * from people;
创建表时
create table newtable as select * from people;
6.
sqlplus username/password@服务名