column

SQL之DDL

给你一囗甜甜゛ 提交于 2020-01-28 12:11:45
DDL是SQL定义语言,它主要包括三个关键字:create ,alter , drop( 数据库关键字不分大小写 ),主要操作对象 有数据库、表、索引、视图等 操作 语句 创建数据库 create database 修改数据库 alter database 删除数据库 drop database 创建表 create table 修改表 alter table 删除表 drop table 创建所以 create index 删除索引 drop index ........... .................... 1.create 创建数据库、表、所以、视图等操作。 例子:常见一个人事表,包括字段(一个字段就是表里一列,它也是人的一个属性)有 ID,姓,名, 地址,城市。 use scott create table person ( id int primary key , lastname char(10), firstname char(10), addres char(20), city char(20) ) 上述指令表示在scott 数据库下面创建person表,其中person表有5个字段,id 为主键,主键的意思是能唯一标识一行记录,就像人的身份证是不同的,它能唯一标识出一个人。 通过语句 select * from person 可以看出创建的person表

leetcode-螺旋矩阵

可紊 提交于 2020-01-25 07:57:05
class Solution { private List<Integer> retlist = new LinkedList<>(); private int rowlength; private int columnlength; public List<Integer> spiralOrder(int[][] matrix) { if(matrix.length==0){ return this.retlist; } this.rowlength = matrix.length; this.columnlength = matrix[0].length; int index = 0; int maxcount = matrix[0].length*matrix.length; this.dfs(0,0,matrix,1,maxcount,0); return this.retlist; } public void dfs(int row,int column,int[][] matrix,int order,int maxcount,int index){ this.retlist.add(matrix[row][column]); index+=1; if(maxcount==index){ return; } //接下来判断方向 //1是右,2是左,3是上,4是下 if

Could not find value method on SQL annotation. Cause: org.apache.ibatis.builder.BuilderException:

こ雲淡風輕ζ 提交于 2020-01-23 02:08:32
前言: 许久没有使用mysql,报此错,解决后记录 1.原因一: xml中的sql语句,没有使用mybatis正确的符号; & lt ; < 小于号 <= 和 & lt ; = 的表示是一个意思 & gt ; > 大于号 & amp ; & 和 & apos ; ’ 单引号 & quot ; " 双引号 2.原因二: 对象属性名称、表中字段名称,输入错误 @Results ( id = "resultMap" , value = { @Result ( id = true , column = "id" , property = "id" ) , @Result ( column = "third_id" , property = "thirdId" ) , @Result ( column = "version" , property = "version" ) , @Result ( column = "form_data_id" , property = "formDataId" ) , @Result ( column = "dispose_id" , property = "disposeId" ) , @Result ( column = "created_time" , property = "createTime" ) , // update_time,我在此处写错

如何设计一个日志表(笔记)

ε祈祈猫儿з 提交于 2020-01-22 21:39:30
CREATE TABLE "public" . "scrm_wechat_request_log" ( "id" int8 DEFAULT nextval ( 'scrm_wechat_request_log_id_seq' ::regclass ) NOT NULL , "log_type" int2 DEFAULT 0 , "server_port" int2 DEFAULT 0 , "server_name" varchar ( 64 ) COLLATE "default" DEFAULT '' :: character varying , "server_ip" varchar ( 200 ) COLLATE "default" DEFAULT NULL :: character varying , "request_param" varchar ( 500 ) COLLATE "default" DEFAULT NULL :: character varying , "request_interface" varchar ( 64 ) COLLATE "default" DEFAULT NULL :: character varying , "request_timestamp" int8 , "request_time" int4 , "request_type"

vue+elementui实现多功能table(拖拽、点击、状态变色、动态button、动态隐藏列等)

北战南征 提交于 2020-01-22 01:18:25
vue+elementui实现多功能table(拖拽、点击、状态变色等) < template > < div class = "form_table" > < div class = "w-table" : class = "{'w-table_moving': dragState.dragging}" > < el - table stripe : ref : header - cell - style = "{background:'#eef1f6',color:'#606266'}" : data = "TableList" : border = "tableOption.border" : height = "tableOption.minHeight" : max - height = "tableOption.maxHeight" : style = "{ width: parseInt(tableOption.width)+'px' }" : header - cell - class - name = "headerCellClassName" @selection - change = "handleSelectionChange" v - loading = "loading" element - loading - text = "加载中..." :

导航区域 温故GridView 和 column

笑着哭i 提交于 2020-01-21 19:35:08
代码: import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; class TopNavigator extends StatelessWidget { final List navigatorList; TopNavigator({this.navigatorList}); Widget _gridViewItemUI(BuildContext context,item){ return InkWell( onTap: (){ print('点击了导航'); }, child: Column( children: <Widget>[ Image.network(item['image'],width:ScreenUtil().setWidth(95)), Text(item['mallCategoryName']) ], ), ); } @override Widget build(BuildContext context) { if (this.navigatorList.length > 10) { this.navigatorList.removeRange(10, this.navigatorList.length); }

HBase的TTL介绍

六眼飞鱼酱① 提交于 2020-01-19 21:41:36
1. 定义 TTL(Time to Live) 用于限定数据的超时时间。 2.原理 以Column Family的TTL为例介绍, hbase(main):001:0> desc 'wxy:test' Table wxy:test is ENABLED wxy:test COLUMN FAMILIES DESCRIPTION {NAME => 'cf', DATA_BLOCK_ENCODING => 'NONE', BLOOMFILTER => 'ROW', REPLICATION_SCOPE => '0', VERSIONS = > '2', COMPRESSION => 'NONE', MIN_VERSIONS => '0', TTL => 'FOREVER', KEEP_DELETED_CELLS => 'FALSE', BLOC KSIZE => '65536', IN_MEMORY => 'false', BLOCKCACHE => 'true'} {NAME => 'f1', DATA_BLOCK_ENCODING => 'NONE', BLOOMFILTER => 'ROW', REPLICATION_SCOPE => '0', COMPRESSIO N => 'NONE', VERSIONS => '5', TTL => 'FOREVER', MIN

mysql 添加/删除列(column)

依然范特西╮ 提交于 2020-01-13 07:15:13
1、添加 格式:alter table 表名 add column 列名 列的数据类型;示例alter table test4 add column addr text; 2、删除 格式: alter table 表名 drop column 列名; 示例: alter table test4 drop column addr; 来源: https://www.cnblogs.com/wt7018/p/11115710.html

Cannot determine value type from string"xxxx"

北城以北 提交于 2020-01-10 04:13:04
页面显示时报Cannot determine value type from string “'这类的错误这个时候就要注意了,这种错误绝大多数都是出现在连表查询上面,立刻检查你的mapper.xml <resultMap type="ZxChange" id="ZxChangeResult"> <id property="id" column="id" /> <result property="assetsId" column="assets_id" /> <result property="changeType" column="change_type" /> <result property="submittedDepartment" column="submitted_department" /> <result property="submitOne" column="submit_one" /> <result property="useDepartment" column="use_department" /> <result property="users" column="users" /> <result property="extend1" column="extend1" /> <result property="extend2" column=