增:
Insert into 表名 (字段名1,字段名2…) value (值1,值2…)
删:
Delete from 表名 where 条件(字段名=值)
删除整个表:delete from 表名
改:
Update 表名 set 需要修改的内容(修改后的字段名=值) where 条件(字段名=值)
查:
Select 字段名 from 表名 (where可省)
Mysql增删改查
最新推荐文章于 2022-11-15 21:25:27 发布
增:
Insert into 表名 (字段名1,字段名2…) value (值1,值2…)
删:
Delete from 表名 where 条件(字段名=值)
删除整个表:delete from 表名
改:
Update 表名 set 需要修改的内容(修改后的字段名=值) where 条件(字段名=值)
查:
Select 字段名 from 表名 (where可省)