BEGIN
#遍历占领野地表还原军队
#update armforce set number=num where troopsid=(select id from troops where isfrist=1 and cityid=cityid)
DECLARE tId DECIMAL...
分类:
数据库 时间:
2014-11-01 16:07:58
阅读次数:
172
ExecuteNonQuery方法ExecuteNonQuery方法主要用来更新数据。通常使用它来执行Update、Insert和Delete语句。该方法返回值意义如下: 对于Update、Insert和Delete语句,返回值为该命令所影响的行数。 对于所有其他类型的语句,返回值为-1。Com.....
分类:
数据库 时间:
2014-11-01 14:52:04
阅读次数:
23852
添加账户:代码:(需要已经使用root登陆了MySQL)grant 权限 on 数据库.* to 用户名@登录主机 identified by 密码;注意:1.数据库后面必须是.*,2.权限分为select insert update delete等,3.用户名和登陆均主机需用引号引起,主机名%默认...
分类:
数据库 时间:
2014-11-01 01:00:49
阅读次数:
299
Overview and basic usage Mapping Initialization Create/Update/Delete Querying Faceting Highlighting More like this Spell checking Stats Field collapsi...
分类:
Web程序 时间:
2014-10-31 22:04:35
阅读次数:
214
use msyql;update user set password=password('新密码') where user='root';flush privileges;quitnet stop mysql#如果提示 发生系统错误5,就用管理员身份启动cmd.exe
分类:
数据库 时间:
2014-10-31 21:59:55
阅读次数:
151
前言: 线上oracle数据库有张表的数据有些乱,根据应用db的log和应用的log也没有检查出来谁修改了,所以决定把这张单表做个详细的insert、update、delete监控。一:使用数据库自带的审计功能1,查看审计功能是否启动SQL> show parameter audit ...
分类:
数据库 时间:
2014-10-31 20:39:08
阅读次数:
373
1. your phonegap platform for android update 3.5.11 cordova platform add android@3.52. download crosswalk for android 从这里下载crosswalk 解压之后我把它们叫做 x86 和....
分类:
移动开发 时间:
2014-10-31 20:38:07
阅读次数:
236
一 Insert 语句1.在数据中只插入默认值:insert into [DBTrain].[dbo].[log_info]default values2.在可以为null 的字段中,如果要设置null,可以按下[Ctrl+0],注意是零不是o,如果要恢复修改前的值按[Esc]二 Update 语句...
分类:
其他好文 时间:
2014-10-31 18:41:19
阅读次数:
220
找了各种版本的方法都不凑效,下面是在java论坛里找到的方法,结果是正确的。 $ sudo add-apt-repository "deb?http://archive.canonical.com/?lucid partner" $ sudo apt-get update $ sudo apt-get install s...
分类:
移动开发 时间:
2014-10-31 16:06:21
阅读次数:
251
代码中有一个较大的事务,需要做多次数据库的增删改等操作。其中一个新增操作我使用了公司封装的hibernate的entityDao;其它操作使用的是spring提供的jdbcTemplate。二者操作流程基本如下:entityDao.save(写入表1)jdbcTemplate.update(根据entityDao向表1写入的最新数据,更新..
分类:
数据库 时间:
2014-10-31 15:54:43
阅读次数:
236