
insert into 表名 values (值,值,值...); utf8 (charset) 


类型系统
- 比较支持隐式类型转换,称为“弱类型系统”(Java)
- 不太支持隐式类型转换,称为“强类型系统”(C 语言、mysql)
动静态类型
- 动态类型:程序运行中,变量类型可以改变
优势:非常灵活,表达能力更强
缺点:程序运行前,难以做丰富的检查- 静态类型:程序运行中,变量类型不能改变
优缺点:与动态相反
insert into 表名(列名1,列名2...) value(值1,值2...); 
insert into 表名 value(),(),(); 
- 手动插入时间
- 自动插入时间:
now()
select * from 表名; * 称为通配符(“赖子”),可以指代所有的类select *!!!
select 列名1,列名2... from 表名; 

select 表达式 as 别名 from 表名; //as 可以省略 
select distinct 别名 from 表名;` 
select 列名 from 表名 order by 表名; select 列名 from 表名 order by 表名 desc; //descend select 列名 from 表名 order by 表1, 表2, ... 
select 列名 from 表名 where 条件; 
select * from exam where math<30; 
select * from exam where math 
( )
( , ]

孙%%孙%孙% 
_ 就占一个位
= 直接语 null 进行比较,要用 <=>
select 列名 from 表名 limit N; offset,从下标为几的记录开始算
这是真正在改写硬盘里面的数据,是“持久有效的”
updata 表名 set 列名=值, 列名=值...; 
delete from 表名 where 条件/order by/limit; 全删,但 空表 还在drop 是连表带数据一起删
