首页  >  文章  >  数据库  >  ORA-00922:选项缺失或无效_MySQL

ORA-00922:选项缺失或无效_MySQL

WBOY
WBOY原创
2016-05-27 13:46:282308浏览

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

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn