码迷,mamicode.com
首页 >  
搜索关键字:__user    ( 38326个结果)
php对二维数组排序
'0yl','accuracy' => 0.00),Array('username' => '11yl','accuracy' => 1.00),Array('username' => '12yl','accuracy' => 0.50),Array('username' => '13yl','a....
分类:Web程序   时间:2014-07-09 19:37:18    阅读次数:215
php连接oracle oracle开启扩展
user=$user; $this->pass=$pass; $this->dbname=$dbname; } //连接数据库 function conn(){ $link = oci_connect($this->user,$this->pass,$this->dbname); return $l...
分类:数据库   时间:2014-07-09 19:28:51    阅读次数:232
thinkphp 检测访问来源是来自手机还是PC
/** * 判断访问是不是来自手机 * @param * @author Julian */function isMobile(){ $useragent=isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : '...
分类:移动开发   时间:2014-07-09 18:01:19    阅读次数:355
oracle 知识
1.查询索引数量select table_name, count(*) cnt from user_indexes where index_type='NORMAL' group by table_namehaving count(*) >= 1order by cnt desc ;2.查询外键未....
分类:数据库   时间:2014-07-08 22:40:18    阅读次数:308
自定义Git
在"安装Git"一节中,我们已经配置了user.name和user.email,实际上,Git还有很多可配置项。比如,让Git显示颜色,会让命令输出看起来更醒目:$ git config --global color.ui true这样,Git会适当地显示不同的颜色,比如git status命令:文...
分类:其他好文   时间:2014-07-08 22:20:13    阅读次数:243
Mysql User-Defined Variables 用户自定义变量 SET or DECLARE
在MySQL中,我们可以将一个值或一个查询结果保存的一个用户自定义的变量中,然后在后面的语句在应用。 本文介绍了SET和DECLARE的定义和声明变量的用法。...
分类:数据库   时间:2014-07-08 17:26:55    阅读次数:249
windows 7中修改用户配置文件的路径
在windows7中用户配置文件的默认位置是在c:\users文件夹中。我建议最好在安装完操作系统之后就将用户配置文件的默认位置改变到其他分区。Warning在视图更改注册表之前,请备份好注册表相关键值。1.将c:\user文件夹Copy到新的位置(默认情况下“Default”directory是隐藏的,请到..
分类:Windows程序   时间:2014-07-08 10:51:58    阅读次数:480
MySQL manager or server PID file could not be found![FAILED]
[root@centos64x64mysql-5.1.65]#/etc/init.d/mysqldrestartMySQLmanagerorserverPIDfilecouldnotbefound![FAILED]解决办法第一,先删除rm-rf/var/lib/mysql,然后重新初始化/usr/local/mysql/bin/mysql_install_db--user=mysql
分类:数据库   时间:2014-07-08 09:19:32    阅读次数:281
CI框架的数据库操作函数
//举例查询(userid,name,sex为user表的数据库字段)publicfunctiontesta(){$this->load->database();$query=$this->db->query(‘SELECT*FROMuser‘);foreach($query->result()as$row){echo$row->userid;echo$row->name;echo$row->sex;}}//举例插入(use..
分类:数据库   时间:2014-07-08 08:41:54    阅读次数:273
MySQL常用SQL语句(Python实现学生、课程、选课表增删改查)
以基本的学生选课为例,建立选课数据库,学生、班级、选课信息三张表,并分别对表进行插删改操作:importMySQLdb try: conn=MySQLdb.connect(host=‘localhost‘,user=‘root‘,passwd=‘root‘,db=‘xuanke‘,port=3306) cur=conn.cursor() cur.execute("CREATEDATABASExuanke") ..
分类:数据库   时间:2014-07-08 08:05:43    阅读次数:479
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!