输入banner图图片脚本导航/分类

mysql 常用命令

1、创建数据库并设置字符集

 

eg: create database wl_rent_car(数据库名) default  character set utf8(字符集) COLLATE utf8_general_ci(排序规则);

2、查看数据库中表的数量

select count(*) from  information_schema.tables where TABLE_SCHEMA = ‘wl_rent_car‘(数据库名);

 

二、------------------

1、添加字段

alter table  表名  add column 字段名  类型  默认值;

eg:alter table  art_car  add column isForward int(1) default 0;

2、查看表结构

desc 表名

 

mysql 常用命令

标签:efault   创建   alt   sql   set   war   orm   har   creat