Home > Database > Mysql Tutorial > body text

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

WBOY
Release: 2016-05-27 13:46:28
Original
2346 people have browsed it

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: 选项缺失或无效
Copy after login

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
Copy after login

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template