AUTO INCREMENT -- 在新记录插入表中时生成一个唯一的数字。插入表数据时,该字段不需规定值。 在每次插入新记录时,自动地创建主键字段的值。在表中创建一个 auto-increment 字段。 MySQL:AUTO_INCREMENT CREATE TABLE tableName ( c ...
分类:
数据库 时间:
2019-12-13 13:44:47
阅读次数:
102
CREATE TABLE `test` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) CHARACTER SET latin1 DEFAULT NULL, `category_id` int(11) DEFAULT NULL, ...
分类:
数据库 时间:
2019-12-13 12:16:23
阅读次数:
84
配置参数 16G 8核 mysql 配置参数 automatic_sp_privileges = ON auto_increment_increment = 1 auto_increment_offset = 1 avoid_temporal_upgrade = OFF back_log = 300 ...
分类:
数据库 时间:
2019-12-12 16:48:07
阅读次数:
337
操作方法 创建两个数据库test1 test2 同一个host下面 分别在两个数据库中创建表 Table structure for test_db DROP TABLE IF EXISTS ; CREATE TABLE ( int(11) NOT NULL AUTO_INCREMENT, varc ...
分类:
数据库 时间:
2019-12-12 12:44:33
阅读次数:
113
删除一个表: drop table if exists 表名; 在表中插入行: Insert into 表名 values(, , ,) 创建表: Create table 表名( Id int(10) primary key auto_increment, // auto_increment自增的 ...
分类:
数据库 时间:
2019-12-12 11:37:23
阅读次数:
157
表名: think_areas 创建表: CREATE TABLE `think_areas` ( `area_id` smallint(6) unsigned NOT NULL auto_increment COMMENT '地区id', `parent_id` smallint(6) unsig ...
分类:
数据库 时间:
2019-12-11 13:31:03
阅读次数:
160
安装参考 :https://www.cnblogs.com/qingyunzong/p/8668880.html hbase一般用法, https://www.cnblogs.com/cxzdy/p/5583239.html ...
分类:
其他好文 时间:
2019-12-10 22:40:16
阅读次数:
103
[TOC] 一、简介 在上一篇文章 "HBase 基础入门" 中,我们已经介绍了 HBase 的一些基本概念,以及如何安装使用的方法。 那么,作为一名 Javaer,自然是希望用 Java 的方式来与 HBase 进行对话了。 所幸的是,HBase 本身就是用 Java 编写的,天生自带了 Java ...
分类:
编程语言 时间:
2019-12-09 23:12:20
阅读次数:
159
一、安装&启动 下载 https://hbase.apache.org/downloads.html 快速开始文档 https://hbase.apache.org/book.html quickstart 启动 基本操作 进入控制台 报错 list 显示数据库表 Describe 表名 Scan ...
分类:
其他好文 时间:
2019-12-09 11:47:22
阅读次数:
116
准备表 #建表 create table department( id int, name varchar(20) ); create table employee( id int primary key auto_increment, name varchar(20), sex enum('mal ...
分类:
其他好文 时间:
2019-12-08 12:15:49
阅读次数:
76