mthoutai

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

1、错误描写叙述

SQL> create table info_stu from select t.stu_id,t.stu_name,t.stu_age from info t;
 
create table info_stu from select t.stu_id,t.stu_name,t.stu_age from info t
 
ORA-00922: 选项缺失或无效

2、错误原因

     因为用数据库表中某些字段创建一张新表。中间的连接是用AS,而不是用from


3、解决的方法

SQL> create table info_stu as select t.stu_id,t.stu_name,t.stu_age from info t;
 
Table created


posted on 2017-06-14 16:15  mthoutai  阅读(4743)  评论(0编辑  收藏  举报