上一页 1 ··· 4 5 6 7 8
摘要: 使用如下命令:select table_schema,table_name,column_name,column_type,column_key,is_nullable,column_default,column_comment,character_set_name from information 阅读全文
posted @ 2019-04-26 17:47 JimmyShan 阅读(4088) 评论(0) 推荐(1) 编辑
摘要: 查看事务是否占用被锁: SELECT * FROM information_schema.INNODB_TRX;查看里面的 trx_mysql_thread_id字段show full processlist;找ID 和 trx_mysql_thread_id 是否有对应,如果有,使用下面命令kil 阅读全文
posted @ 2019-04-26 17:46 JimmyShan 阅读(314) 评论(0) 推荐(0) 编辑
摘要: 目前网上搜索的删除重复记录,大部分都是where子查询,本人感觉看上去不美观,故亲自手写了一个,如下: delete from mst_sku using mst_sku,( select distinct max(sys_no) as sys_no, sku_code from mst_sku g 阅读全文
posted @ 2019-04-26 17:44 JimmyShan 阅读(950) 评论(0) 推荐(0) 编辑
摘要: 方法一: 进入MySQL安装目录 打开MySQL配置文件 my.ini 或 my.cnf查找 max_connections=100 修改为 max_connections=1000 服务里重起MySQL即可 方法二: MySQL最大连接数默认是100客户端登录: MySQL -uusername 阅读全文
posted @ 2019-04-26 17:37 JimmyShan 阅读(3852) 评论(0) 推荐(0) 编辑
摘要: 错误SQL 查询:编辑SHOWFULLFIELDSFROM`表`FROM`数据库`;MySQL 返回:#1030 - Got error 28 from storage engine根据返回值,可以判断应该是某挂在分区空间已满造成。[root@websites ~]# df -lhFilesyste 阅读全文
posted @ 2019-04-26 17:35 JimmyShan 阅读(2595) 评论(0) 推荐(0) 编辑
摘要: 1. 去官网 https://www.elastic.co/cn/ 下载 注意: ES对JDK版本有较高的要求,5.x及以上版本需要JDK8支持,本人此次使用2.4.6版本2. 下载后,JDK先安装,然后解压elasticsearch-2.4.6.zip到D盘(本机暂定D盘)3. 进入D:\elas 阅读全文
posted @ 2019-04-26 17:30 JimmyShan 阅读(398) 评论(0) 推荐(0) 编辑
摘要: <insert id="add" parameterType="com.dsa.core.base.model.ProductSync"> insert into tm_sync_product( <if test="productId!=null">product_id,</if> <if tes 阅读全文
posted @ 2019-04-26 17:27 JimmyShan 阅读(3266) 评论(0) 推荐(0) 编辑
摘要: Math是javascript的一个内部对象,该对象的方法主要是一些数学计算方法floor:下退 Math.floor(12.9999) = 12ceil:上进 Math.ceil(12.1) = 13;round: 四舍五入 Math.round(12.5) = 13 Math.round(12. 阅读全文
posted @ 2019-04-26 14:26 JimmyShan 阅读(7843) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8