在dos命令下建立mysql数据库的表

在dos命令下建立mysql数据库的表,第1张

这样就行了,

create table maxs(

friend_max int not null auto_increment,

diary_max int not null,

album_max int not null,

photo_max int not null,

comment_max int not null,

visit_max int not null,

user_max int not null,

head_max int not null,

p_comment_max int not null,

primary key(friend_max)

)

还有,别忘了选择数据库,就是在开头儿的地方加上 “use 数据库名”。

用sql语句啊!

创建数据库:create database xxx

use xxx

创建表:create table yyy(字段1 字段1的参数类型 ,字段2 字段2的参数类型 ,...)


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/sjk/6857685.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-03-29
下一篇 2023-03-29

发表评论

登录后才能评论

评论列表(0条)

保存