1、错误描述Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot add or update a child row: a foreign key constraint fails
at sun.reflect.NativeConstructorAccessor...
分类:
其他好文 时间:
2016-01-22 08:15:07
阅读次数:
198
表名称 [Engine] => 表的存储引擎 [Version] => 版本 [Row_format] => 行格式。对于MyISAM引擎,这可能是Dynamic,Fixed或Compressed。动态行的行长度可变,例如Varchar或Blob类型字段。...
分类:
数据库 时间:
2016-01-21 23:59:43
阅读次数:
446
执行语句DELIMITER $$DROP PROCEDURE IF EXISTS jsjh_goods_property_value_update$$CREATE PROCEDURE jsjh_goods_property_value_update()BEGINDECLARE row_base_br...
分类:
数据库 时间:
2016-01-21 18:52:53
阅读次数:
196
1. 一个简单的例子1.1. 创建表: create table t(s1 integer);1.2. 触发器:delimiter |createtriggert_trigger before insertont foreach row beginset@x = "hello trigger";se...
分类:
数据库 时间:
2016-01-21 09:11:45
阅读次数:
235
Use additional O(m+n) space, simple improvement. Two array, one is of size row, to store the status of each row, whether there is a 0 element in the r...
分类:
其他好文 时间:
2016-01-21 06:56:43
阅读次数:
128
本篇随笔将简单介绍两种基本的布局——Grid布局和VariableSizedWrapGrid布局。 Grid布局 顾名思义,Grid布局将布局容器以行和列的分割方法拆分成若干单元格,然后通过指定子元素所属单元格的行编号(Grid.Row)与列编号(Grid.Column)的方式将一个或多个...
分类:
其他好文 时间:
2016-01-20 20:51:56
阅读次数:
402
Row_Number实现分页1:首先是 select ROW_NUMBER() over(order by id asc) as 'rowNumber', * from table1 生成带序号的集合2:再查询该集合的 第 1 到第 5条数据 select * from (select ROW_NU...
分类:
数据库 时间:
2016-01-19 23:36:27
阅读次数:
207
hive字符串分割函数split(str, regex) - Splits str around occurances that match regexTime taken: 0.769 seconds, Fetched: 1 row(s)返回值为一个数组a.基本用法:例1:split('a,b,c...
分类:
其他好文 时间:
2016-01-19 14:23:50
阅读次数:
151
UILabel *downloader = [[UILabel alloc]init]; NSString *downloadCount = [[LibraryArr objectAtIndex:indexPath.row]objectForKey:@"downloadCou...
分类:
其他好文 时间:
2016-01-19 12:16:58
阅读次数:
132
代码:public class Solution { public List spiralOrder(int[][] matrix) { List resultList = new ArrayList(); int row = matrix.length; ...
分类:
其他好文 时间:
2016-01-19 12:05:44
阅读次数:
129