我们下边介绍如何通过SQLite3提供的API实现MyNotes数据库创建。创建数据库一般需要经过如下三个步骤。 (1) 使用sqlite3_open函数打开数据库。 (2) 使用sqlite3_exec函数执行Create Table语句,创建数据库表。 (3...
分类:
数据库 时间:
2014-10-22 20:31:43
阅读次数:
219
我们下边介绍如何通过SQLite3提供的API实现MyNotes数据库创建。创建数据库一般需要经过如下三个步骤。(1) 使用sqlite3_open函数打开数据库。(2) 使用sqlite3_exec函数执行Create Table语句,创建数据库表。(3) 使用sqlite3_close函数释放资源。在这个过程中,我们使用了三个SQLite3 API函数,它们都是纯C语言函数。在Cocos2d-...
分类:
数据库 时间:
2014-10-22 20:26:03
阅读次数:
274
passthru()
功能描述:允许执行一个外部程序并回显输出,类似于 exec()。
危险等级:高
exec()
功能描述:允许执行一个外部程序(如 UNIX Shell 或 CMD 命令等)。
危险等级:高
assert()
功能描述:如果按照默认值来,在程序的运行过程中调用assert()来进行判断表达式,遇到false时程序也是会继续执行的,跟eval()类似,不过eval(...
分类:
Web程序 时间:
2014-10-22 20:22:38
阅读次数:
230
我们下边介绍如何通过SQLite3提供的API实现MyNotes数据库创建。创建数据库一般需要经过如下三个步骤。(1) 使用sqlite3_open函数打开数据库。(2) 使用sqlite3_exec函数执行Create Table语句,创建数据库表。(3) 使用sqlite3_close函数释放资...
分类:
数据库 时间:
2014-10-22 20:14:29
阅读次数:
166
/***获得用户手机的mac*通过arp执行控制台程序,得到控制台的返回,然后处理控制台的信息,从ip查询得到mac*chen*@returnunknown*/functiongetMac(){ $ip=$_SERVER["REMOTE_ADDR"]; $command="arp"; $data=exec($command,$out); $ipstr=""; for($i=0;$i<count($out);$i++) {..
分类:
Web程序 时间:
2014-10-22 16:05:39
阅读次数:
150
import?com.mybatis.page.support.PageSqlGenerator;
import?com.mybatis.page.support.OraclePagerSqlGenerator;
import?com.mybatis.page.support.PageRowBounds;
import?org.apache.ibatis.executor.Exec...
分类:
其他好文 时间:
2014-10-22 13:04:11
阅读次数:
327
首先在MSSQL客户端中进行如下图文操作配置其次使用脚本进行操作配置---开启SQLServer 跨服务器查询功能exec sp_configure 'show advanced options',1 reconfigure exec sp_configure 'Ad Hoc Distributed...
分类:
数据库 时间:
2014-10-22 10:52:23
阅读次数:
175
1.增加列:alter table tableName add columnName varchar(30)2.修改列类型:alter table tableName alter column columnName varchar(4000)3.修改列的名称: EXEC sp_rename '...
分类:
数据库 时间:
2014-10-22 08:43:25
阅读次数:
184
Linux中find常见用法示例·find path -option [ -print ] [ -exec -ok command ] {} \;find命令的参数;pathname: find命令所查找的目录路径。例如用.来表示当前目录,用/来表示系统根目录。-print: find命令将匹配的文...
分类:
系统相关 时间:
2014-10-21 21:05:21
阅读次数:
380
启用Ad Hoc Distributed Queries: exec sp_configure 'show advanced options',1reconfigureexec sp_configure 'Ad Hoc Distributed Queries',1reconfigure 使用完成后,...
分类:
数据库 时间:
2014-10-21 19:30:05
阅读次数:
341