您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

MySQL Commons_MySQL

2025/11/7 16:26:02发布24次查看
mysqldump usage: mysqldump [options] database [tables]or mysqldump [options] --databases [options] db1 [db2 db3...]or mysqldump [options] --all-databases [options]
mysql> create table t_test ( i int primary key auto_increment , j int , k int ) ;query ok, 0 rows affected (0.15 sec) mysql> mysql> mysql> insert into t_test values(1,1,1) on duplicate key update j = j+1 , k=k+1 ;query ok, 1 row affected (0.21 sec)mysql> mysql> insert into t_test values(1,1,1) on duplicate key update j = j+1 , k=k+1 ;query ok, 2 rows affected (0.04 sec)mysql> select * from t_test ;+---+------+------+| i | j | k |+---+------+------+| 1 | 2 | 2 |+---+------+------+1 row in set (0.00 sec)mysql> insert into t_test values(1,1,1) on duplicate key update j = j+1 , k=k+1 ;query ok, 2 rows affected (0.00 sec)mysql> select * from t_test ;+---+------+------+| i | j | k |+---+------+------+| 1 | 3 | 3 |+---+------+------+1 row in set (0.00 sec)
建立连接的时候指定 useunicode=true  characterencoding=utf-8 参数可防止乱码
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product