码迷,mamicode.com
首页 >  
搜索关键字:set    ( 56286个结果
mysqlnd cannot connect to MySQL 4.1+ using the old insecure authentication的解决方法
直接命令行操作没有问题,但是PHP连接就会报上面的错误。SET old_passwords =0;USE mysql;UPDATE user SET password =PASSWORD('yourpassword') WHERE user='testuser' limit 1;SELECT LEN...
分类:数据库   时间:2014-10-10 14:54:24    阅读次数:229
MSSQL,MySQL 语法区别
1 mysql支持enum,和set类型,sql server不支持2 mysql不支持nchar,nvarchar,ntext类型3 mysql的递增语句是AUTO_INCREMENT,而mssql是identity(1,1) MYSQL:create table basic(id int key...
分类:数据库   时间:2014-10-10 14:50:24    阅读次数:580
HttpClient 操作总结
1、HttpClient4.3和之前版本设置超时(set timeout)区别: 参考:http://my.oschina.net/u/577453/blog/173724 解析:如果不设置超时的话,可能会使得get的时间很久,造成程序假死(挂着不动不结束) 最近用到了HttpClient写微...
分类:其他好文   时间:2014-10-10 14:48:34    阅读次数:206
Oracle replace函数使用
需求是要修改Oracle某列表中把这一列中全部的100换成200;update b_nodes a set a.childs=replace((select childs from b_nodes b where b.nodeid=a.nodeid),'100','200') where a.chi...
分类:数据库   时间:2014-10-10 13:14:34    阅读次数:190
List<子类>转List<父类>过程中犯的一些错误
新人犯的错误,记录一下供以后参考。有两个类1 public class A2 {3 public string Name{get;set;} 4 }5 6 public class B:A7 {8 public int Age{get;set;}9 }有一个方法,需要类B age作为条件...
分类:其他好文   时间:2014-10-10 00:57:53    阅读次数:7861
SAS学习笔记之函数应用
count——data step 在data step里面count可以实现计数功能,就是对字段中的某个特殊字符计数,如 data ta; set tb; a=count(name,'*'); run; 就是在tb表中增加一个字段a,用来存放name中*出现的次数 find——proc sql find可以在proc sql过程中,使用,就是查找某个字符出现的位置 find(name,'*') 就是在name中查找*出现的位置 substr 就是取子字符串,这个比较简单,需要注意的是,针对汉字而已,SA...
分类:其他好文   时间:2014-10-10 00:04:18    阅读次数:356
c#excel的操作例子
1 class MyData//存储行数据 2 { 3 public List RowData { get; set; } 4 } 5 6 static void Main(string[] args) 7 { 8 9 Application app=new ApplicationClass...
分类:其他好文   时间:2014-10-09 23:38:07    阅读次数:268
一个简单的sel server 函数的自定义
创建自定义函数:use 数据库名gocreate function 函数名(@pno int)returns intasbegin declare @a int if not exists(select * from person where pno=@pno) set @a=-1 else set...
分类:其他好文   时间:2014-10-09 21:49:17    阅读次数:187
angularjs培训之重新理解双向绑定和事件详解
双向绑定是angularjs亮点之一,在前面的《angularjs培训之helloworld》篇中大概介绍了下双向绑定,现在我们“旧事重提”,先看下下面的代码片段:view中:<inputtype=‘button‘ng-click="set()"value="setValue"> <inputtype="text"ng-model=‘userName2‘>controller..
分类:Web程序   时间:2014-10-09 19:19:58    阅读次数:320
ZOJ Problem Set - 2563 Long Dominoes 【状压dp】
题目:ZOJ Problem Set - 2563 Long Dominoes 题意:给出1*3的小矩形,求覆盖m*n的矩阵的最多的不同的方法数? 分析:有一道题目是1 * 2的,比较火,链接:这里 这个差不多,就是当前行的状态对上一行有影响,对上上一行也有影响。所以 定义状态:dp【i】【now】【up】表示在第 i 行状态为now ,上一行状态为 up 时的方案数。 ...
分类:其他好文   时间:2014-10-09 18:52:47    阅读次数:159
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!