MySQL常用操作
1、字符串拼接:
update products a,categorys b set a.categoryNumbers = concat(b.parent,",",a.categoryId,",")
where b.id = a.categoryId
1、字符串拼接:
update products a,categorys b set a.categoryNumbers = concat(b.parent,",",a.categoryId,",")
where b.id = a.categoryId
--auto-rehash Enable automatic rehashing. One doesn't need to use …
MySql导入SQL文件: mysql -u root -p <c:\sampledb.sql…
如果你想连接你的mysql的时候发生这个错误: ERROR 1130: Host '192.168.1.3' is not allowed to connect to this MySQL server 解决方法: 1. 改表法。可能是你的帐号不允许从远程登陆,只能在localhost。这个时候只要…
从MySQL 4.1开始引入的多语言支持确实很棒,而且一些特性已经超过了其他的数据库系统。不过我在测试过程中发现使用适用于MySQL 4.1之前的PHP语句操作MySQL数据库会造成乱码,即使是设置过了表字符集也是如此。我读了一下新的M...…
不需要使用游标循环来读取,直接select * into @变量就OK了,还可以传递参数来执行。 MySql通用分页存储过程 过程参数 4 p_cloumns varchar(500),p_tables varchar(100),p_where varchar(4000),p_order varc…
MySQL配置调优项详解 以下是一份机器内存:64GB RAM,最大连接数为2000,MySQL使用InnoDB为主的配置说明,某些项的最优值请根据实际生产需要来调.[root@centos190 conf]# cat my.cnf ### MySQL config 5.0/5.1/5.5 ###…