zoukankan      html  css  js  c++  java
  • MYSQL仅仅向某个字段进行插入

    例子:

    mysql> show create table student G
    *************************** 1. row ***************************
           Table: student
    Create Table: CREATE TABLE `student` (
      `age` int(3) NOT NULL default '0',
      `energy` int(11) default '0',
      `the_time` date default NULL,
      PRIMARY KEY  (`age`)
    ) ENGINE=MyISAM DEFAULT CHARSET=utf8
    1 row in set (0.03 sec)
    
    mysql> insert into student (age) values(7), (8), (9);  // 这里仅仅对age字段进行操作
    Query OK, 3 rows affected (0.00 sec)
    Records: 3  Duplicates: 0  Warnings: 0
    
    mysql>
  • 相关阅读:
    Xaml下
    Xmal
    ItemTemplate
    spring aop
    Struts2
    jsp的标签库
    数据库连接池
    request初探
    kubectl 命令大全
    win10常见问题归总
  • 原文地址:https://www.cnblogs.com/Robotke1/p/3192470.html
Copyright © 2011-2022 走看看