4sql基础
============
与oracle区别
date yyyy-mm-dd
time hh:mi:ss
datetime yyyy-mm-dd hh:mi:ss
timestamp yyyymmddhhmiss
text 65535字符串
enum 允许两个值中的一个,不和规则置为空
set 允许从取值列中获取字段值,可以为多个,最多64项
------------
create database xxx;
use database;
show tables;
------------
支持字段auto_increment
primary key 写在后面
create table an(id int auto_crement,primary key(id));
!= 不等号
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/13177610/viewspace-684202/ ,如需转载,请注明出处,否则将追究法律责任。