12 2013 档案

摘要:1.生成一个表的简单sql语句CREATE OR REPLACE PROCEDURE proc_AutoGenerateSQL( tableName VARCHAR2 ,--参数 需要操作的表名 大小写区别 tableType NUMBER , -- 参数 对表操作类型 0 =insert 1 =update 2=select sqlOrNet NUMBER ,-- 参数 需要生成那种格式sql 1 = sql 0 =net tableOutStr OUT VARCHAR2 --参数 输出需要的sql)IS sql_columns VARCHAR2(2000); sql_columnvalu. 阅读全文
posted @ 2013-12-24 10:04 sulin 阅读(280) 评论(0) 推荐(0)
摘要:public void Encrypt() { //加密解密用到的公钥与私钥 RSACryptoServiceProvider oRSA = new RSACryptoServiceProvider(); string privatekey = oRSA.ToXmlString(true);//私钥 string publickey = oRSA.ToXmlString(false);//公钥 privatekey = XDocument.Load(Server.MapPath("privatekey.xml")).ToString(); publickey = XDocu 阅读全文
posted @ 2013-12-23 09:37 sulin 阅读(654) 评论(0) 推荐(0)
摘要:1.session and cookie示列:title";else echo "Welcome guest!";?>备注:Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent 修正方法:session_start()调到程序的第一行 阅读全文
posted @ 2013-12-16 16:47 sulin 阅读(170) 评论(0) 推荐(0)
摘要:1.展示类的继承和静态的方法定义和调用函数Say(); } function addItem($product,$num){ $this->items[$product]+=$num; } function reomveItem($product,$num){ if($this->items[$product]>$num){ $this->items[$product]-=$num; return true; }elseif($this->items[$product]==$num){ unset($this->items[$product]); ... 阅读全文
posted @ 2013-12-13 16:35 sulin 阅读(206) 评论(0) 推荐(0)
摘要:1.数据准备create table Vertical( Id int , ProjectName varchar(20), ProjectValue int )insert into Vertical values (101,'旅游',100)insert into Vertical values (101,'牧业',101)insert into Vertical values (101,'工业',102)insert into Vertical values (101,'软件',103)insert into Vertica 阅读全文
posted @ 2013-12-12 17:01 sulin 阅读(575) 评论(0) 推荐(0)
摘要:1. 流程控制定义和调用函数$b){ echo '$a bigger than $b '; }elseif($a==$c){ echo '$a equal to $b ' ; } else{ echo '$a smaller than $b'; }while($iNumber:'.$i; $i++; }do{ $i=0; echo 'do while control';}while($i);for($i=0;$i for control:the current value= '.$i.''; bre 阅读全文
posted @ 2013-12-12 12:01 sulin 阅读(173) 评论(0) 推荐(0)
摘要:1 链接mysql 数据简单测试 connect("localhost","root","sulin","test"); if($mysqli->errno == 0) { $sql = "SELECT * FROM table_1"; $result = $mysqli->query($sql); echo "Result row nums:".$result->num_rows.""; while(list($id,$name,$bi 阅读全文
posted @ 2013-12-11 16:05 sulin 阅读(223) 评论(0) 推荐(0)
摘要:1.简单一个class 类;获取表单提交的值 采用post方式PHP TEST perName.''; echo 'Age:'.$this->perAge.'' ; } } $per =new person(); $per->perName= $_POST['Name']; $per->perAge= $_POST['Age']; $per->present($_POST['Name'],$_POST['Age']); $per->Say();?> 阅读全文
posted @ 2013-12-10 18:02 sulin 阅读(218) 评论(0) 推荐(0)
摘要:1.采用发送一个简单邮件示例: 1 private int smtpPort; 2 private string smtpHost; 3 private int recieveTimeout; 4 private int sendTimeout; 5 6 private string subject; 7 private string body; 8 private StringBuilder htmlBody; 9 10 private Smtp smtp;11 ... 阅读全文
posted @ 2013-12-04 17:42 sulin 阅读(423) 评论(0) 推荐(0)
摘要:1.js代码 阅读全文
posted @ 2013-12-02 16:13 sulin 阅读(354) 评论(0) 推荐(0)
摘要:1.引用关联的js脚本 2.html代码 cssjs 阅读全文
posted @ 2013-12-02 15:53 sulin 阅读(551) 评论(0) 推荐(0)
摘要:1.Ionic.zIP 实现文件压缩和解压2.压缩: /// /// 压缩文件 /// /// 压缩文件目录 /// 压缩文件名称 /// 需要添加到压缩文件的目录 物理路径 /// 需要添加到压缩文件的文件 物理路径 /// 是否成功 /// /// CompZipFiles(@"E:\\zipfile",DateTime.Now.ToString("yyMMddHHmmssff") + ".zip",@"E:\\testzip",new string[]{@"E:\\crebas.sql"} 阅读全文
posted @ 2013-12-02 11:28 sulin 阅读(1775) 评论(0) 推荐(0)