摘要:
非空约束: create table temp( id int not null, name varchar(20) not null default 'adc', sex char null )//给id,name加上非空约束 alter table temp modify sex varchar(2) not null;... 阅读全文
摘要:
库操作: show databases;//显示全部数据库 drop database dbName;//删除数据库 create database [if not exists] dbName;//创建数据库 use dbName;//使用数据库 show tables;//显示当前使用数据库的表名 desc tableName;//显示具体的表结构 表操作: drop table tabl... 阅读全文