数据处理(增,删,改),数据类型

55 阅读1分钟

1.增加数据

Insert into …(别表数据,id,name,salary….)

Values

(1,'李丽华',50000),

(2,'李华',100000)

Insert into ….((别表数据,id,name,salary….))

Select ((别表数据,id,name,salary….)))

From ….

Where id =1

 

改:

Updat …..
Set ….
Where……


Update dept01
Set name = '李华', salary = 5000
Where id =1

删:

Delete from….
WhereDelete from dept01  
where name = '李丽华'

2常见数据类型

image.png

数据关键字

image.png

整数类型

image.png

浮点数类型

image.png

时间类型

image.png

image.png

image.png

image.png

image.png

文本类型

image.png

1.char():不可变数据类型----->短数据

Varchar():可变数据类型------>长数据

image.png

image.png