MYSQL(增删改查语法)

2021/7/17 2:05:09

本文主要是介绍MYSQL(增删改查语法),对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

  1. 增 insert

    insert into 表名(字段名,)values(1,"zhangsan","123");

    insert into 表名 )values(1,"zhangsan","123");

     

  2. 删 delete

    delete from user_table

    delete from user_table where user_name="tom" and user_sex="nan"

    delete from user_table where user_name="tom" or user_sex="nan"

     

  3. 改 update

    update 表名 set 字段=xx, where

  4. 查 select

    select *from user_table where;

    select user_name,user_sex from user_table;



这篇关于MYSQL(增删改查语法)的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程