3.
   在sqlplus中不能这样写6.
   就是这样写的,难道不行吗?

解决方案 »

  1.   

    3、
    如果newtable表已存在,则插入数据
    insert into newtable select * from people;如果newtable表不存在,则需在建表时同时插入数据
    create table newtable  as select * from people;
      

  2.   

    3,into只是用在使用PL/SQL开发的存储过程,触发器等程序的时候才用得到,如果您仅仅是写一条查询语句,是不能使用into的,例如
    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文件中指定相应的信息,就可以使用@符号进行连接了
      

  3.   

    select * into newtable from people
    这是sqlserver的写法。
    oracle的写法是:
    create table newtable  as select * from people;
      

  4.   

    3 insert into newtable select * from people;
    4.不明白你的意思
      

  5.   

    3.
    insert into newtable select * from people;
    创建表时
    create table newtable as select * from people;
    6.
    sqlplus username/password@sid
      

  6.   

    3.
    insert into newtable select * from people;
    创建表时
    create table newtable as select * from people;
    6.
    sqlplus username/password@服务名