1、创建mysql_class.php文件然后在该文件中创建Mysql类,并定义变量12345678910112、通过构造函数初始化类1234567function
__construct($host,$root,$password,$database){$this->host = $host;$t...
分类:
数据库 时间:
2014-05-21 20:33:36
阅读次数:
450
最近数据库从10.2.0.3升级到了10.2.0.5之后,一些对象无法编译通过。查看了这些对象主要表现在之前写法不严格的SQL语法导致了这些package无法成功编译,诸如select查询列中不能使用混淆的列名称等。另外一个比较表现突出的是返回ORA-00932: inconsistent datatypes: expected - got CLOB错误,即不一致的数据类型,获得CLOB数据类型。...
分类:
其他好文 时间:
2014-05-21 16:34:25
阅读次数:
434
近日再次翻看《javascript面向对象编程指南》这本书,读到浏览器环境一章,渐渐明白了js作为脚本语言,需要依托宿主环境来实现功能,从浏览器角度考虑,就是对浏览器的BOM和DOM的操作。DOM操作又可分为:访问、修改、删除、新建。每种操作都有独特的方法和属性。下面取dom节点的访问、新建和删除的功能实例来讲解(参考文章)。
function add()//动态添加表格的例子...
分类:
Web程序 时间:
2014-05-21 16:20:11
阅读次数:
299
1、
??
Add Two Numbers
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two num...
分类:
其他好文 时间:
2014-05-21 10:49:10
阅读次数:
221
ALTER TABLE
sql-statement ::=
ALTER TABLE [database-name .] table-name alteration
alteration ::=
RENAME TO new-table-name
alteration ::=
ADD [COLUMN] column-def
SQLite...
分类:
数据库 时间:
2014-05-21 08:10:45
阅读次数:
344
一、Backup and Recovery Overview
1、Backup and Recovery Overview
1.1 What is Backup and Recovery?
一般,备份和恢复引用各个策略和过程保护你的数据库背离数据丢失,同时在任何一种数据丢失后重建数据库。
1.1.1 Physical Backups and Logical Backups
一个备份是...
分类:
数据库 时间:
2014-05-21 07:55:51
阅读次数:
376
Installing in iOS (Xcode 5)
1:首先你要有一个项目。LOL
2:添加一个新的测试target。(关于Target是什么,请参考我的另外一篇文章)最新版Xcode 将Add Target放在顶部栏
3:选择新的target的类型
4:将GHUnit框架放到新建的target中
5:打开Objective-C categories,...
分类:
移动开发 时间:
2014-05-21 07:49:12
阅读次数:
399
题目:
Given an array of integers, find two numbers such that they add up to a specific target number.
The function twoSum should return indices of the two numbers such that they add up t...
分类:
其他好文 时间:
2014-05-21 07:42:18
阅读次数:
230
前些时候,同事在站点服务端使用SQlite存储一些临时数据,但是在多人并发的时候Sqlite会抛出异常:The database file is locked , database is locked,而且这个是在客户生产环境下提示出来的,开发环境很难重现,同事实在没辙,竟然想发动所有研发同事通过操作软件重现问题,我只能呵呵了。既然是Sqlite的原因,直接写个小程序测试下sqlite不就行了,而...
分类:
数据库 时间:
2014-05-21 07:13:51
阅读次数:
483
远程库推送与克隆
1.Linux下产生ssh key
命令行输入 ssh-keygen -t rsa -C "your email"
则会在主目录下生成一个.ssh的目录,里面的id_rsa.pub为你ssh key密钥。
在登录github下,点击 account settings -> ssh key -> add ssh key 将你的key加入
此时,你就将这两个进行了一个绑...
分类:
系统相关 时间:
2014-05-21 06:28:30
阅读次数:
396