摘要:
针对库的增删改查(文件夹) #增 create databases mydbname; #查 show databases; #查所有 show database mydbname;#查单个 #改 alter database mydbname charset='utf-8'; #修改库的格式; # 阅读全文
摘要:
前期表准备: #建表 create table dep (id int,name varchar(20)); create table emp ( id int primary key auto_increment, name varchar(20), sex enum ('male','femal 阅读全文
摘要:
default默认值 #补充知识点 插入数据的时候可以指定字段 create table test7( id int, name char(16)); insert into test7(name,id) values('yumo',1); create table test8( id int, n 阅读全文
摘要:
sql语句几个关键字的执行顺序: #书写顺序 select id,name from emp where id > 3; #执行顺序 from where select " 虽然执行顺序和书写顺序不一致,在写SQL语句的时候可能不知道怎么写,就按照书写顺序的方式写SQL select * 先用* 号 阅读全文
摘要:
一、整型 分类:TINYINT, SMALLINT, MEDUIMINT, INT, BIGINT TINYINT 默认情况下是带有符号的,超出限制只存最大可接受值 create table test1(id TINYINT); insert into test1 values(-129,256); 阅读全文