英文原文

those are not columns you can modify, they are metadata propertes of each user column the database needs to work, your columns you can modify are Fname, Lname, age and phone.

The console output confusingly calls them Fields but they are your user columns for that table you have called mytable. What you are seeing and thinking are columns are metadata properties of the fields. Each field has a type, is nullable, is a key, has an optional default value, and some extra data. These are things the database needs to operate.

From the MySQL Reference Manual

If you want to find out about the structure of a table, the DESCRIBE

statement is useful; it displays information about each of a table's

columns:

mysql> DESCRIBE pet;

+---------+-------------+------+-----+---------+-------+

| Field | Type | Null | Key | Default | Extra |

+---------+-------------+------+-----+---------+-------+

| name | varchar(20) | YES | | NULL | |

| owner | varchar(20) | YES | | NULL | |

| species | varchar(20) | YES | | NULL | |

| sex | char(1) | YES | | NULL | |

| birth | date | YES | | NULL | |

| death | date | YES | | NULL | |

+---------+-------------+------+-----+---------+-------+

Field indicates the column name, Type is the data type for the column,

NULL indicates whether the column can contain NULL values, Key

indicates whether the column is indexed, and Default specifies the

column's default value. Extra displays special information about

columns: If a column was created with the AUTO_INCREMENT option, the

value will be auto_increment rather than empty.

If you want to see the DATA in your table then use Select instead of Describe; see the above explanation of what Describe actually does.

mysql delete删除列,在MySQL中删除我的Key列 (Delete my Key column in MySQL)相关推荐

  1. mysql安装服务和安装中常见问题install/Remove of the Service Denied与net start mysql服务启动失败解决方法

    mysql安装服务和安装中常见问题install/Remove of the Service Denied与net start mysql服务启动失败解决方法 参考文章: (1)mysql安装服务和安 ...

  2. php删除多表数据,mysql – 从多个表中删除数据

    假设,我有一个名为UNIVERSITY的表,其中包含大学名称: universityID universityNAME isACTIVE 7 GNDU 1 6 PU 1 5 PTU 1 8 LPU 1 ...

  3. mysql中用于删除数据的是什么意思_从mysql中删除数据最安全的方法是什么? (PHP / MySQL的)...

    我想允许用户和我(管理员)删除mysql中的数据. 我曾经有过remove.php,可以从需要删除的内容中获取$_GETs,例如- remove.php?action = post& post ...

  4. mysql安装失败后怎么彻底删除_MySQL安装失败后如何完全卸载移除MySQL - 收获啦

    (1)控制面板 ---> 程序和功能 ---> 卸载MySQL Installer: (2)删除MySQL软件安装路径下的MySQL目录,默认目录为 C:\Program Files (x ...

  5. Delphi动态数组中删除元素的重要函数Delete

    System.Delete从字符串中删除一个子串,或者从动态数组中删除元素,并返回修改后的数组. 在Delphi代码中,Delete从字符串或数组S中删除一个由Count字符组成的子串,从S[Inde ...

  6. MATLAB中删除矩阵的某些列或某些行

    MATLAB中删除矩阵的某一列或某一行 删除某一行 例子 删除某一列 例子 删除多行 例子 删除多列 例子 删除某一行 b([行数],:) = [];// b为矩阵名 例子 删除第一行 删除第三行 删 ...

  7. mysql数据库删除列数据_MySQL数据库-数据表、以及列的增删改查

    1.创建一个表 CREATE(创建) TABLE(表) ENGINE(引擎) ENGINE=INNODB(引擎)还有很多类引擎,这里只是简单的提一下INNODB引擎,INNODB引擎支持事务(回滚), ...

  8. python删除csv某一行_用Python一步从csv中删除特定的行和列

    步骤1,创建一个示例数据import pandas as pd # Create sample CSV-file (100x100) df = pd.DataFrame(np.arange(10000 ...

  9. mysql scrapy 重复数据_MySQL大数据量表中删除重复记录

    MySQL大数据量表中删除重复记录 最近工作中需要抓取大量新闻,抓取的数据中由于一些原因存在一些重复数据,而整个数据表的记录数接近10万条,大小接近1个G,又在我自己的渣渣本本上,查询速度十分不理想, ...

最新文章

  1. Tensorflow tf.placeholder函数
  2. case....when ...多重判断
  3. c语言得到系统的函数,c语言系统函数(C language system function).doc
  4. POJ-3281 Dining 网络流最大流
  5. python 图片 变清晰_python实现图片变亮或者变暗的方法
  6. 三、Vue组件化开发学习笔记——组件化的基本步骤、全局组件和局部组件、父组件和子组件、注册组件的语法糖、模板分离写法、组件的数据存放
  7. 中国科学院大学计算机金智,金智-中国科学院大学-UCAS
  8. Redis在游戏服务器中的应用
  9. tftp拷贝linux文件夹,CentOS下使用TFTP向目标板传送文件
  10. MATLAB简单绘图命令,简单的matlab绘图命令
  11. h5快速制作工具-企业级. 非个人无水印
  12. Win10最美SSH工具
  13. omnet++ tictoc1 实例分析
  14. 【供应链架构day5】美团供应链架构的演进之道 - 团购时代
  15. 业绩爆发,押注“泛半导体”,TCL押对了吗?
  16. 2020总结及2021展望
  17. Dockerfile Registry WebUI 之 docker-registry-frontend 基础应用
  18. matlab自动调焦,光学系统离焦对自动调焦评价函数的影响
  19. 使用studio 3T按日期查询mongodb
  20. Python 3语法小记(四)字典 dictionary

热门文章

  1. Windows 7 应用程序崩溃恢复
  2. 获取前台HTML控件的值(select)
  3. 【SmartJob】启动问题查询
  4. Qt的Oracle数据库QOCI驱动问题
  5. QMetaObject::connectSlotsByName: No matching signal for问题的解决方法
  6. [Vuex系列] - Vuex中的getter的用法
  7. noip2006总结
  8. css清除浮动方法总结
  9. Tears in Heaven
  10. 设计Qt风格的C++API