码迷,mamicode.com
首页 >  
搜索关键字:insert all    ( 36718个结果
Generate Parentheses java实现
Givennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a solution set is:"((()))...
分类:编程语言   时间:2014-07-12 13:02:18    阅读次数:248
Permutations java实现
Given a collection of numbers, return all possible permutations.For example,[1,2,3]have the following permutations:[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,...
分类:编程语言   时间:2014-07-12 12:56:52    阅读次数:206
十二、mysql sql_mode 简学
1.一般默认情况下sql_mode默认为空,也就是不严格的sql检查2.如果sql_mode为空的情况下,测试: create table tt3 (name char(2)); //定义一个name字段长度为定长2的tt3表 insert into tt3 values ('wo');...
分类:数据库   时间:2014-07-12 09:16:32    阅读次数:235
SQL:找到一个关于all some any的用法,可在SSMS里看效果
SET nocount ON USE tempdbgo IF ( OBJECT_ID('t1') IS NOT NULL ) DROP TABLE t1CREATE TABLE t1 ( n INT )INSERT INTO t1 SELECT 2 UNIO...
分类:数据库   时间:2014-07-12 00:46:24    阅读次数:262
九、mysql触发器的概念
1.所谓触发器,就是指设置好某个表的某个操作(insert ,update ,delete)时候,同时触发的一个操作; 一般用来,比如说删除文章主栏目,那么可以利用触发器删除这个文章栏目下的所有文章2.创建触发器 delimiter $$ create trigger ins_1 ...
分类:数据库   时间:2014-07-09 13:36:35    阅读次数:263
MYSQL SET ENUM字段类型
show create table stu;//显示建表语句create table t1(t enum('a','b','c'));insert into t1 values('a');create table t2(t set('a','b','c'));insert into t2 value...
分类:数据库   时间:2014-07-09 13:19:42    阅读次数:197
【LeetCode】Path Sum
题目 Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. For example: Given the below binary tree ...
分类:其他好文   时间:2014-07-09 10:32:42    阅读次数:151
Linux服务器禁用ping
Ping是通过发送ICMP报文(类型8代码0)探寻网络主机是否存在的一个工具,如果服务器不能很好处理过大的Ping包,导致出现了PingtoDeath的攻击方式(用大Ping包耗尽对方的服务器资源)。Linux禁用ping格式如下:[root@test~]#echo"0">/proc/sys/net/ipv4/icmp_echo_ignore_all默..
分类:系统相关   时间:2014-07-09 09:00:46    阅读次数:335
linux服务器禁ping
[root@localhost~]#cat/proc/sys/net/ipv4/icmp_echo_ignore_all查看icmp_echo_ignore_all的值0是允许ping1是禁止ping修改为icmp_echo_ignore_all的值为1这个只是在内存生效,重启就恢复0[root@localhost~]#echo"1">/proc/sys/net/ipv4/icmp_echo_ignore_all然后ping下这台..
分类:系统相关   时间:2014-07-09 08:55:34    阅读次数:260
grails2.3.x创建插件,gsp页面不能正确显示内容
grails2.3.x创建plugin时,默认的Config.groovy只有简单的log设置,这时候,页面添加数据之后,正确的逻辑是show新增的数据,但却变成404,需要在Config.groovy中增加以下代码:grails.mime.types=[//thefirstoneisthedefaultformatall:‘*/*‘,//‘all‘mapsto‘*‘orthefirstavaila..
分类:其他好文   时间:2014-07-09 08:38:45    阅读次数:280
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!