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;

上一篇:一个常量,C#编译通过,打开Form报错


下一篇:SQL Server如何在变长列上存储索引