07 2014 档案

摘要:批量执行:update `erp_orders` set `orders_shipping_code`='RL007169726CN' where `erp_orders_id`=1055614141 and orders_shipping_code='';update `erp_orders` s... 阅读全文
posted @ 2014-07-25 12:41 UCanBeFree 阅读(221) 评论(0) 推荐(0) 编辑
摘要:复制: 阅读全文
posted @ 2014-07-24 15:47 UCanBeFree 阅读(87) 评论(0) 推荐(0) 编辑
摘要:世纪惨案:导入EXCEL出现:表头为 erp_orders_id;UPDATE `erp_orders` SET orders_ship_fee='', `orders_shipping_code`='' WHERE erp_orders_id=erp_orders_id;全部追踪号全没了。 阅读全文
posted @ 2014-07-23 15:59 UCanBeFree 阅读(371) 评论(0) 推荐(0) 编辑
摘要:error1:ERROR 1045 (28000): Access denied for user 'root'@'xyt.local' (using password: YES)grant all on mysql.* to 'root'@'192.168.11.172' identified b... 阅读全文
posted @ 2014-07-19 17:12 UCanBeFree 阅读(148) 评论(0) 推荐(0) 编辑
摘要:1,命名变量num=2echo "this is {$num}nd"输出 this is 2nd2, 变量相加 默认是字符串相加var=1var=$var+1echo $var输出 1+13,如何数学相加:let "var+=1" var="$[$var+1]" ((var++))var=$(($... 阅读全文
posted @ 2014-07-18 21:01 UCanBeFree 阅读(117) 评论(0) 推荐(0) 编辑
摘要:脚本执行:test:#!/bin/basha="Hello ,World!"echo "A is:" $a变为可执行sudo chmod +x test加入自动任务:自动任务配置文件: /etc/crontab# m h dom mon dow user command17 * * * * ... 阅读全文
posted @ 2014-07-18 20:18 UCanBeFree 阅读(208) 评论(0) 推荐(0) 编辑
摘要:大致的调用方法请参考 AUTH模块 缓存最简单的是文件缓存: 举个最简单的例子: 先配置好cache 配置文件: 1 <?php defined('SYSPATH') or die('No direct script access.'); 2 return array 3 ( 4 'memcache 阅读全文
posted @ 2014-07-10 17:55 UCanBeFree 阅读(283) 评论(0) 推荐(0) 编辑
摘要:AUTH的实现是用抽象类来实现的,一个类,对应多种不同的验证方式。先来介绍一个抽象类,很有借鉴意义:实现一个猴子类,狗类,以及后面可其他类。 通常可以用抽象类和接口实现:但是我们不直接定义具体的类,我们把所有猴子类,狗类的特征放在不同的config里面,同过抽象类方法来 初始话一个对象。config... 阅读全文
posted @ 2014-07-10 15:35 UCanBeFree 阅读(175) 评论(0) 推荐(0) 编辑
摘要:小孩和公共设施用继承的方法:class Sanitation{ public function Washhands(){ echo "Cleaning!"; } }class Child extends Sanitation{ }$child=new Chi... 阅读全文
posted @ 2014-07-10 09:26 UCanBeFree 阅读(289) 评论(0) 推荐(0) 编辑
摘要:利用ORM存储一行信息: $user = ORM::factory('user'); $user->username = 'admin'; $user->email = 'admingmail.com'; $user->passw... 阅读全文
posted @ 2014-07-09 20:36 UCanBeFree 阅读(345) 评论(0) 推荐(0) 编辑
摘要:游标: 类似于数组的下标。declare cur_test CURSOR for select id ,username from erp_manages; 定义游标;declare continue handler FOR SQLSTATE '02000' set done=1; 当数据扫描到... 阅读全文
posted @ 2014-07-08 17:38 UCanBeFree 阅读(261) 评论(0) 推荐(0) 编辑
摘要:#-*-coding:utf-8-*-'''Created on 2014年7月7日@author: xyt''''''尝试抽象一个牛群'''class Cows(): def __init__(self,age): self.age=age self.count_... 阅读全文
posted @ 2014-07-07 12:27 UCanBeFree 阅读(2507) 评论(0) 推荐(0) 编辑
摘要:message="uvwxyz,df,df,df,df,df,df,dfabcd"for i in message: if i.isalpha() : if ord(i)<=ord('u'): print chr(ord(i)+5) else... 阅读全文
posted @ 2014-07-07 11:55 UCanBeFree 阅读(107) 评论(0) 推荐(0) 编辑
摘要:pass 阅读全文
posted @ 2014-07-07 11:54 UCanBeFree 阅读(161) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示