A-问题 - 关于写-A-数据B ... [英] A-question-about-write-a-datab...

查看:76
本文介绍了A-问题 - 关于写-A-数据B ...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我编写一个关于SQL数据库的程序来设置数据表时,编译器显示错误'附近有一个错误'drop''我找不到程序正确的原因,wrriten是对。请帮我解决这个问题。

创建架构测试授权zhang

创建表格tab1(col1 smallint,

col2 int,

col3 char(20),

col4 numberic(10,3)

);

drop schema zhang restrict

When i wrote a program about database on SQL for setting up a data table ,the compiler showed a error ' there is a mistake near 'drop '' I can't find out the reason for the program isright,the wrriten is right. Please help me slove this problem.
create schema test authorition zhang
create table tab1 (col1 smallint,
col2 int,
col3 char(20),
col4 numberic (10,3)
);
drop schema zhang restrict

推荐答案

没有这样的数据类型 - numberic

尝试使用numeric数据类型。
There is no such datatype - "numberic"
try "numeric" datatype instead.


检查 DROP SCHEMA 的语法[ ^ ]



此外,你应该开始从这里 http://www.w3schools.com/sql/ [ ^ ]
Check the syntax of DROP SCHEMA[^]

Besides, you should start from here http://www.w3schools.com/sql/[^]


这篇关于A-问题 - 关于写-A-数据B ...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆