外键的使用 外键的概念: 一个表的主键在另外一个表中出现,在另外一个表中称为外键 作用:表间的数据插入、更新的时候的一种约束 语法 sql [CONSTRAINT constraint_name] FOREIGN KEY [foreign_key_name] (columns) REFERENCES ...
分类:
数据库 时间:
2020-04-01 17:57:04
阅读次数:
84
有时候要监听对象的变化。 我一般用来做一堆input 表单里面条件是否达到,然后按钮的颜色变化。 data: { return: { form: { name: '', tel: '', product_value: [], // 产品数组第一个是第一级,第二个是第二级。 product_label ...
分类:
其他好文 时间:
2020-04-01 16:21:55
阅读次数:
66
/*示例 1:输入:seq = "(()())"输出:[0,1,1,1,1,0]示例 2:输入:seq = "()(())()"输出:[0,0,0,1,1,0,1,1]链接:https://leetcode-cn.com/problems/maximum-nesting-depth-of-two-v ...
分类:
其他好文 时间:
2020-04-01 16:18:36
阅读次数:
53
1、报错现象如下:[root@cdh02 ~]# yum install httpd已加载插件:langpacks, product-id, search-disabled-repos, subscription- : managerThis system is not registered wit ...
分类:
其他好文 时间:
2020-04-01 12:57:10
阅读次数:
202
有效括号的嵌套深度。题意是给一个用字符串表示的嵌套括号,请按规则返回这个字符串的嵌套深度depth。嵌套深度的定义如下, depth("") = 0 depth(A + B) = max(depth(A), depth(B)), where A and B are VPS's depth("(" + ...
分类:
其他好文 时间:
2020-04-01 09:18:51
阅读次数:
87
特征元素的添加是通用特征元素的一种特殊化,它表示修改相关主元素的形状和外观的依赖于存在的元素。ifcfeaturelementaddition提供了将形状修改器作为添加到主元素形状的IFC对象模型中的语义对象处理的功能。 ifcfeaturelementaddition通过对象化关系IfcRelPr ...
分类:
其他好文 时间:
2020-03-31 21:18:44
阅读次数:
69
今天看见一个烧脑的代码,一时没看懂结果,刨个坑,看懂填 def product(*args, repeat=1): pools = [tuple(pool) for pool in args] * repeat result = [[]] for pool in pools: result = [x ...
分类:
其他好文 时间:
2020-03-31 14:37:53
阅读次数:
48
先做个热身 //递归:函数执行的时候自己调用自己 // function fn(){ // fn(); //Uncaught RangeError: Maximum call stack size exceeded // 这种死递归会导致栈溢出 // } // fn(); // function f ...
分类:
编程语言 时间:
2020-03-31 12:16:24
阅读次数:
77
LEFT 返回字符串中从左边开始指定个数的字符。 语法 LEFT ( character_expression , integer_expression ) character_expression 字符或二进制数据的表达式。 character_expression 可以是常量、变量或列 。 in ...
分类:
数据库 时间:
2020-03-30 23:04:57
阅读次数:
87
Given a non-empty array of integers, return the third maximum number in this array. If it does not exist, return the maximum number. The time complexi ...
分类:
其他好文 时间:
2020-03-30 12:40:30
阅读次数:
66