编程技巧 - 文章列表
-
oracle恢复误删除数据的方法
1、查询指定时间点的数据select*fromxxxasoftimestampto_timestamp(2019-08-1515:29:00,yyyy-mm-ddhh24:mi:ss);2、将已删除的数据恢复到数据库insertintoxxxselect*fromxxxasoftimestampto_timestamp(2019-08-1515:29:00,yyyy-mm-ddhh24:mi:ss
-
php连接mysql时报错 SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client
php连接mysql时报错SQLSTATE[HY000][2054]Theserverrequestedauthenticationmethodunknowntotheclient原因是mysql8默认的身份验证方式是:caching_sha2_password用phpinfo查询loadedplugins,如果少了caching_sha2_password,就表明此版本的php不支持此验证方式解
-
oracle 备份远程数据库
oracle备份远程电脑上的数据库格式为:exp用户名/密码@地址/服务名file=本地路径如expaaa/111111@192.168.1.10/orclfile=d:\bak.dmp还原与此类似,如:impaaa/111111@192.168.1.10/orclfile=d:\bak.dmpfromuser=aaatouser=bbb
-
oracle 将以逗号分隔的列拆成多行的的方法
原表如下select*fromV_RES_CARD_LINKED将列拆分成多行的语句selectREGEXP_SUBSTR(ASSET_CODE,[^,]+,1,L)ASASSET_CODE,rackname,typefromv_res_card_linked,(SELECTLEVELLFROMDUALCONNECTBYLEVEL=1000)WHEREL(+)=LENGTH(ASSET_CODE)
-
tomcat在win10中启动时,显示为乱码的解决方法
tomcat在win10中启动时,显示为乱码,如下图解决方法是修改conf目录下的logging.properties文件将UTF-8修改为GBK
-
springboot整合mybatis报错 Invalid bound statement (not found)
springboot整合mybatis时报错org.apache.ibatis.binding.BindingException:Invalidboundstatement(notfound):com.xxxx.xxxmybatis的mappper.xml文件是和java文件一起放的,经检查,发现target中没有将mapper的xml文件包含进去处理方法:在pom的build节点下加入src/m
-
oracle 日期加减天数、月数
selectsysdate,add_months(sysdate,12)fromdual;--加1年selectsysdate,add_months(sysdate,1)fromdual;--加1月selectsysdate,to_char(sysdate+7,yyyy-mm-ddHH24:MI:SS)fromdual;--加1星期selectsysdate,to_char(sysdate+1,y
-
oracle 列转行函数 listagg
selectCUSDEVID,listagg(portcode,;)withingroup(orderbyportcode)portsfromD_JT_DEVICE_PORTgroupbyCUSDEVID如果转换的列为nvarchar2类型,则需要先使用to_char,否则查询出来为空白如下selectCUSDEVID,listagg(to_char(portcode),;)withingroup
-
eclipse springboot 自动部署(修改页面后不用重启)的设置
在pom中添加内容dependencygroupIdorg.springframework.boot/groupIdartifactIdspring-boot-devtools/artifactIdoptionaltrue/optional/dependencybuildpluginsplugingroupIdorg.springframework.boot/groupIdartifactIdsp
-
spring boot建立项目的基本方法
1、首先,安装环境eclipse中,Help-EclipseMarketplace,安装SpringTools2、安装好后,新建工程,选择SpringStarterProject3、填写项目信息Packaging选择war4、选择依赖的starter,(此示例中选择Aspects、Actuator、Web)5、修改application.properties。此处修改了端口,和查找视图的规则6、在