MySQL对表数据进行增删改查
插入
1 | INSERT INTO `db_student`.`t_student` (`id`, `stuName`, `age`, `sex`, `gradeName`)VALUES('15','tom', '22', '男', '大四'); |
删除
1 | DELETE FROM `db_student`.`t_student` WHERE `id`='16'; |
修改
1 | UPDATE `db_student`.`t_student` SET `sex`='男',`gradeName`='大四' WHERE `id`='16'; |
查找
1 | SELECT * FROM db_miaosha.`t_user` WHERE id=14; |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 LeDao's Blog!
评论