码迷,mamicode.com
首页 >  
搜索关键字:move table    ( 40191个结果
paip.提升效率--数据绑定到table原理和流程Angular js jquery实现
paip.提升效率--数据绑定到table原理和流程Angular js  jquery实现  html    #--keyword 1 #---原理和流程 1 #----jq实现的代码 1 #-----Angular 的实现 3     #--keyword  jquery 遍历表格tr  td Angular 模板绑定 #---原理和流程 获得所有的行,第一的头行.....
分类:Web程序   时间:2014-05-07 05:42:13    阅读次数:478
mysql数据库的优化、恢复等操作
1、当你的自增id主键很大时,你想让id重新到1开始自增                    请输入: truncate table 表名; 2、当你的数据库损坏时,你别慌先试试这条命令是否可以帮助你      请输入: repair table 表1,表2… 3、当你的数据表中含有varchar、text等并进行多次删除添加等操作,      会产生好多碎片空间,这回浪费资源,需要进行...
分类:数据库   时间:2014-05-07 05:40:59    阅读次数:426
菜鸟学SSH(十一)——Hibernate之SchemaExport+配置文件生成表结构
今天说点基础的东西,说说如何通过SchemaExport跟Hibernate的配置文件生成表结构。其实方法非常简单,只需要两个配置文件,两个Java类就可以完成。 首先要生成表,得先有实体类,以Person.java为例: /** * * @author Administrator * @hibernate.class table="T_Person" */ public...
分类:系统相关   时间:2014-05-07 05:30:24    阅读次数:358
oracle的乐观锁和悲观锁
一、问题引出     ① 假设当当网上用户下单买了本书,这时数据库中有条订单号为001的订单,其中有个status字段是’有效’,表示该订单是有效的;     ② 后台管理人员查询到这条001的订单,并且看到状态是有效的;     ③ 用户发现下单的时候下错了,于是撤销订单,假设运行这样一条SQL: update order_table set status = ‘取消’ whe...
分类:数据库   时间:2014-05-07 03:53:58    阅读次数:450
Leetcode | 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 fol...
分类:其他好文   时间:2014-05-07 02:55:24    阅读次数:377
如何让索引只能被一个SQL使用
有个徒弟问我,要创建一个索引,去优化一个SQL,但是创建了索引之后其他 SQL 也要用 这个索引,其他SQL慢死了,要优化的SQL又快。遇到这种问题咋搞? 一般遇到这种问题还是很少的。处理的方法很多。我简单的给大家介绍一种方法。 还是直接看我实验操作步骤吧。 在SCOTT账户里面创建一个测试表和一个索引 SQL> create table test as select * from ...
分类:数据库   时间:2014-05-07 02:35:18    阅读次数:496
codechef Correctness of Knight Move题解
Chef develops his own computer program for playing chess. He is at the very beginning. At first he needs to write the module that will receive moves written by the players and analyze it. The module w...
分类:其他好文   时间:2014-05-06 23:11:26    阅读次数:497
InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
1,Mysqldump的时候报错如下:2014-05-05 14:12:37 7f004a9a2700 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.但是show tables我看这个表示存在的:但是show create table innodb_index_stats;报错如下:mysql> show create t...
分类:数据库   时间:2014-05-06 19:46:46    阅读次数:621
数据库优化 - 3 SQL
SQL调优 1,避免全表扫描 2,防止索引失效 3,用 exists 代替 in 4,不要使用SELECT* FROM table_name,用具体的字段列表代替“*”,不要返回用不到的任何字段。
分类:数据库   时间:2014-05-06 18:00:38    阅读次数:530
oracle实现自增id
--oracle实现自增id --创建一张T_StudentInfo表 create table T_StudentInfo ( "id" integer not null primary key, xsName nvarchar2(120) not null, xsAge integer not null, Mobile varchar(...
分类:数据库   时间:2014-05-06 15:04:22    阅读次数:525
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!