EXEC master..xp_cmdshell 'bcp FH2_SJH.dbo.dCurrent in c:\tt.txt -c -t -S"SMARTSENCER\SQL2008" -U"sa" -P"password"'EXEC master..xp_cmdshell 'bcp FH2_SJ...
分类:
数据库 时间:
2014-06-25 09:13:57
阅读次数:
282
今天用到了多个表之间的关系,另一个表中的一个字段要以第一个表的主键作为外键。
下面说两种方法,MyBatis+MySQL 返回插入记录的主键ID:
第一种:
insert into user(userName,password,comment)
values(#{userName},#{password},#{comment})
第二种:
SELECT LOGS_SEQ...
分类:
数据库 时间:
2014-06-25 07:13:38
阅读次数:
210
向python进军。。。。。。运行所需环境:python,MySQLdb贴下自己写的关于sql备份的python脚本:#!/usr/bin/envpythonimportMySQLdbimportosimporttimedataList=[]remoteAddr=‘xxxx‘user=‘root‘password=‘xxxx‘dbConnect=MySQLdb.connect(%s,%s,%s)%(remoteAddr,user,password)cu..
分类:
数据库 时间:
2014-06-25 06:24:30
阅读次数:
265
boot.properties可以使管理服务器启动时不需要提供密码在所有生产环境中都被使用,随着bea被收购,及Weblogic的发展,其位置发生了改变。boot.properties内容为boot.properties##############################username={your_username}password={your_password}###############..
分类:
Web程序 时间:
2014-06-25 06:16:00
阅读次数:
396
(一)
那么当程序的控制流到达这个变量定义时,变承受构造成本;当变量离开作用域时,便承受析构成本。
string encryptPassword(const std::string& password) {
using namespace std;
string encrypted;
if(password.length() < MinimumPasswordLengt) {
t...
分类:
编程语言 时间:
2014-06-24 23:24:54
阅读次数:
297
string plainText = "This is plain text that we will encrypt";
string password = "P@$$w0rd";
Console.WriteLine(plainText);
Console.WriteLine();
create a ne...
分类:
Web程序 时间:
2014-06-24 20:35:56
阅读次数:
249
查看mysql的所有用户及密码和所属权限mysql>selectuse,password,hostmysql.user;查看mysql支持的存储引擎mysql>showplugins;设置编码类型为utf8vi/etc/my.cnf在[mysqld]配置选项下添加character-set-server=utf8查看编码是什么类型mysql>howvariableslike"%char%";
分类:
数据库 时间:
2014-06-24 16:15:44
阅读次数:
286
public function demo() { $res = null; //insert数据插入 //$user=array('username'=>'joy','password'=>'123456','age'=>23); //$res = DB::table('users')->i...
分类:
数据库 时间:
2014-06-24 12:38:08
阅读次数:
9946
一、jsp连接Oracle8/8i/9i数据库(用thin模式)
testoracle.jsp如下:
String url="jdbc:oracle:thin:@localhost:1521:orcl";
//orcl为你的数据库的SID
String user="scott";
String password="tiger";
...
分类:
数据库 时间:
2014-06-22 20:53:39
阅读次数:
220
下载了OWASPBWA(BrokenWebApplication)的虚拟机,先从DVWA开始练习,无奈第一步登录界面的Username和Password怎么都不是网上所说的admin和password,甚至DVWA的安装说明文档也是错误地给的admin和password。经过一番周折才发现登录界面的Password已经改成了admin,备忘一下。..
分类:
Web程序 时间:
2014-06-22 09:51:46
阅读次数:
701