码迷,mamicode.com
首页 >  
搜索关键字:row    ( 12323个结果
用mysql扩展类把数据库数据取出放在表格上
1 ";15 for ($i=0; $i $file_name";19 }20 echo "";21 22 // echo "";23 //取出行信息24 while ($row = mysql_fet...
分类:数据库   时间:2015-01-05 12:41:22    阅读次数:155
MySQL查看当前用户
1 mysql> select current_user(); 2 +----------------+ 3 | current_user() | 4 +----------------+ 5 | root@localhost | 6 +----------------+ 7 1 row in s....
分类:数据库   时间:2015-01-05 00:20:10    阅读次数:184
从$res获取行数据
1 从$res获取行数据的时候,处理 mysql_fetch_row($res),还有三个方法.2 分别是3 mysql_fetch_row($res) ,返回一个索引的数组 (推荐.)4 mysql_fetch_assoc($res) ,返回一个关联数组5 mysql_fetch_a...
分类:其他好文   时间:2015-01-04 22:50:15    阅读次数:178
[LeetCode] Search a 2D Matrix
Write an efficient algorithm that searches for a value in anmxnmatrix. This matrix has the following properties:Integers in each row are sorted from l...
分类:其他好文   时间:2015-01-04 22:48:33    阅读次数:222
Pascal's Triangle II
Given an index k, return the kth row of the Pascal's triangle. For example, given k = 3, Return [1,3,3,1]. Note: Could you optimize your algorithm to use only O(k) extra space? 与Pascal's Tr...
分类:其他好文   时间:2015-01-04 17:18:04    阅读次数:169
Triangle
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. For example, given the following triangle [ [2], [3,4], [...
分类:其他好文   时间:2015-01-04 17:09:16    阅读次数:125
SQL查询结果增加序号列
--sql 2000select 序号 = (select count(1) from tb where 学号 < t.学号) + 1,学号 ,姓名 from tb t--sql 2005select 序号 = row_number() over(order by 学号),学号 ,姓名 from t...
分类:数据库   时间:2015-01-04 16:52:37    阅读次数:262
mysql锁机制
MySQL 各存储引擎使用了三种类型(级别)的锁定机制:行级锁定,页级锁定和表级锁定。● 行级锁定(row-level)行级锁定最大的特点就是锁定对象的颗粒度很小,也是目前各大数据库管理软件所实现的锁定颗粒度最小的。由于锁定颗粒度很小,所以发生锁定资源争用的概率也最小,能够给予应用程序尽可能大的并发...
分类:数据库   时间:2015-01-04 11:07:40    阅读次数:284
oracle 删除数据
Oracle在表中删除数据的语法是: 语法结构: DELETE FROM表名 WHERE 条件 代码演示: SQL> DELETE FROM INFOS WHERE STUID='s100103'; 1 ROW DELETED SQL> COMMIT; TRUNCATE 在数据库操作中, TRUNCATE命令(是一个DDL命令)可以把表中的所有数据一次性全部删除...
分类:数据库   时间:2015-01-04 10:00:55    阅读次数:148
插入数据
文档是mongodb数据的基本单元,且对数据没有具体的模式要求,可以嵌套各种复杂的数据结构。mongodb和关系数据库的对比:documents/collection/db----row/table/databaseCreate Collection:如果collection不存在, 那么inser...
分类:其他好文   时间:2015-01-02 17:22:32    阅读次数:209
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!