摘要: 一、修改IP地址: 电脑右下角:上网的图标,点击右键,打开“网络和共享中心”, 点击“本地连接”,打开的窗口点击“属性”, 打开新窗口,找到“IPv4”,点击“属性”, 打开新窗口,修改ip,保存,关闭,即可。 二、修改MAC地址: 电脑右下角:上网的图标,右键点击,“打开网络和共享中心”, 窗口左 阅读全文
posted @ 2019-05-28 17:52 caribean 阅读(2133) 评论(0) 推荐(0) 编辑
摘要: 1、菜单:option(选项); 2、选择session options(会话选项); 3、打开的窗口中,点击Appearance(外观); 4、页面上:character encoding(字符编码);选择:utf-8; 阅读全文
posted @ 2019-05-28 17:30 caribean 阅读(911) 评论(0) 推荐(0) 编辑
摘要: update table01 set name='msq_all' where id=122; --更新数据 insert into table01(id,dmcode,name,month) values (122,1,'app_all',201706) ; --插入数据 SELECT * FROM table01 where 1=1 ORDER BY app_name,flag asc... 阅读全文
posted @ 2019-05-28 17:23 caribean 阅读(5331) 评论(0) 推荐(0) 编辑
摘要: 1, 备份需要的数据库; 2, 先删除服务:MySQL Server Instance Config Wizard –>remove instance; 3, 控制面板删除:卸载; 4, 将原来的安装目录清空; 阅读全文
posted @ 2019-05-28 17:17 caribean 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 以下内容较长,请仔细阅读: 1、首先进入安装界面,按“Next”继续; 2、选择Custom,有Typical(默认)、Complete(全装),一般根据选择安装自己的MySQL,故选Custom(自定义),按“Next”继续; 3、安装的内容默认即可,可以点击Change可以更换程序安装目录,按“ 阅读全文
posted @ 2019-05-28 17:15 caribean 阅读(362) 评论(0) 推荐(0) 编辑
摘要: 1、 备份好数据库:表结构和数据; 2、 备份my.ini文件和data文件夹; 3、 卸载旧版本mysql; 4、 安装新版本mysql; 5、 解压版本mysql5.7安装教程: (1) 解压到安装目录; (2) 新建my.ini文件; 输入内容: [client] port=3306 defa 阅读全文
posted @ 2019-05-28 17:14 caribean 阅读(1123) 评论(0) 推荐(0) 编辑
摘要: 1、登录mysql,进入数据库; 2、进入到对应的表里面,输入以下内容: 含有中文数据: 不含中文数据: (注意:需要修改对应的路径,表名,分割符) 阅读全文
posted @ 2019-05-28 17:10 caribean 阅读(14537) 评论(0) 推荐(0) 编辑
摘要: 1、进入mysql数据库控制台: mysql -u root -p 2、选择需要操作的数据库: mysql>use 数据库 3、然后使用source命令,导入sql文件,后面参数为脚本文件(如这里用到的.sql) mysql>source d:/dbname.sql 进入mysql数据库控制台,如 阅读全文
posted @ 2019-05-28 17:06 caribean 阅读(14003) 评论(0) 推荐(1) 编辑
摘要: update table01 set F_DATE = to_char(to_date(F_DATE, 'dd-month-yy', 'NLS_DATE_LANGUAGE=AMERICAN'), ... 阅读全文
posted @ 2019-05-28 16:54 caribean 阅读(3060) 评论(0) 推荐(0) 编辑
摘要: (where exists(select 1 from testb b where b.id=a.id):如果没有这个条件,不匹配的选项也会被更新。 阅读全文
posted @ 2019-05-28 16:48 caribean 阅读(2945) 评论(0) 推荐(0) 编辑
摘要: 一:按照某字段排序(时间,总数等),获取第一条 二:如果是获取时间最新一条数据 阅读全文
posted @ 2019-05-28 16:44 caribean 阅读(5802) 评论(0) 推荐(0) 编辑
摘要: 1、decode函数: 用法:decode(条件,值1,翻译1,值2,翻译2,......,缺省值); 例子: 2、case...when... 用法一: 用法二:使用条件语句 阅读全文
posted @ 2019-05-28 16:32 caribean 阅读(184) 评论(0) 推荐(0) 编辑
摘要: select distinct id,name from test_table b where b.ID='001' ; id为char字段类型,使用该语句查询不出数据。 解决方法:加trim()。改为: select distinct id,name from test_table b where 阅读全文
posted @ 2019-05-28 16:10 caribean 阅读(1341) 评论(0) 推荐(1) 编辑
摘要: 使用trunc()函数获取不同的日期: 阅读全文
posted @ 2019-05-28 15:49 caribean 阅读(416) 评论(0) 推荐(0) 编辑
摘要: 1、oracle中CLOB数据类型使用过程更新数据,代码如上。 2、其他操作 阅读全文
posted @ 2019-05-28 15:40 caribean 阅读(980) 评论(0) 推荐(0) 编辑
摘要: 作用:判断B表和A表是否满足ON中条件,如果满足则执行满足后面的update SQL,如果不满足,则执行不满足后面的insert SQL。 例子: 使用情况,例如:如果数据库中存在数据就update,如果不存在就insert。 阅读全文
posted @ 2019-05-28 15:37 caribean 阅读(5235) 评论(0) 推荐(0) 编辑
摘要: $.ajax( { type : "POST", url : "action.jsp", data : "content=" + content, timeout : 20000, cache : false, beforeSend : function(XMLHttpRequest) { }, s 阅读全文
posted @ 2019-05-28 15:20 caribean 阅读(651) 评论(0) 推荐(0) 编辑
摘要: 方法一: script标签中src链接,或者link标签的href链接,后面加上版本号: 方法二: js生成时间戳: 方法三: css的meta标签设置不缓存 阅读全文
posted @ 2019-05-28 15:17 caribean 阅读(4854) 评论(0) 推荐(0) 编辑
摘要: function fun_date(aa){ var date1 = new Date(), time1=date1.getFullYear()+"-"+(date1.getMonth()+1)+"-"+date1.getDate();//time1表示当前时间 var date2 = new Date(date1); date2.... 阅读全文
posted @ 2019-05-28 15:11 caribean 阅读(8490) 评论(1) 推荐(1) 编辑
摘要: list 阅读全文
posted @ 2019-05-28 15:10 caribean 阅读(3904) 评论(0) 推荐(0) 编辑