在数据库中大多数表的“列”称为“字段”。一张数据表分为行和列,一行就是一跳记录,可能有很多个字段,就是各个属性。比如一张Student 表,里面有studentname,id等字段,是站一列的。文章目录:字段是什么意思?字段是什么意思字段是...
一、数据库基本概念 1.1 数据 1.2 数据库 1.3 数据库管理系统 1.4 数据库系统 二、数据库模型 2.1 数据库系统的三种模式...
很多人都认为,IN 和NOT IN 效率是较低的,我也不例外。 但今天有一件神奇的事情,京到我了:在一个七百万的数据表中,一条仅根据一个没有索引的时间字段的sql,需要权表扫描,耗时700s; 仅使用NOT IN 一个索引,将它耗时降到...
目录 数据库结构 常用的数据类型 查看数据库结构 查看当前服务器中的数据库 查看数据库中包含的表 查看表的结构(字段) SQL 语句 DDL(数据定义语言) 创建新的数据库 创建新的表 删除指定数据表 删除指定的...
前言 一、MVCC 介绍 二、MySQL MVCC 介绍 三、MySQL MVCC实现原理+源码分析 3.1 隐式字段 源码验证 3.2 u...
这是个很重要的小经验,今天特地记下来! 故事背景 今天做公众号功能,用到MySQL数据库,将数据从线上导出,然后在本地MySQL导入,此时问题就发生了:“1265 - Data truncated for column 'status'...