ICode9

精准搜索请尝试: 精确搜索
  • mysql根据当前时间创建表2022-09-14 12:33:16

    复制主表结构并创建 SET @sqlstr = CONCAT('create table you_table_',DATE_FORMAT(CURDATE(),'%Y%m%d'),' like you_table'); PREPARE stmt1 FROM @sqlstr ; EXECUTE stmt1 ; 复制主表数据 SET @sqlstr = CONCAT('insert into you_table_',DATE_FO

  • 干货 | JavaScript脚本注入,完成Selenium 无法做到的那些事2022-09-05 14:02:35

    ⬇️ 点击“下方链接”,提升测试核心竞争力! >>更多技术文章分享和免费资料领取 当 webdriver 遇到无法完成的操作时,可以使用 JavaScript 来完成,webdriver 提供了 execute_script() 方法来调用 js 代码。 执行 js 有两种场景: 在页面上直接执行 js 在某个已经定位的元素上执行 js Ja

  • java 线程池 学习记录2022-08-30 02:01:17

    线程池构造函数参数有哪些 核心线程池 最大线程数 空闲非核心线程存活时长 空闲非核心线程存活时长单位 阻塞队列 线程生产工厂 拒绝执行处理类 execute和submit有什么区别? execute会抛出异常 submit不会抛出异常 线程池怎么处理异常 方式一:继承线程池,重写exe

  • Java方法重载的本质2022-08-27 13:00:35

    Java方法重载的本质 public class DispatcherClient { public static void main(String[] args) { Animal a = new Animal(); Animal a1 = new Dog(); Animal a2 = new Cat(); Execute exe = new Execute(); exe.execute(a);

  • PowerShell教程 - 系统定时任务管理(Schedule Task)2022-08-25 08:30:26

    更新记录 转载请注明出处。 2022年8月25日 发布。 2022年8月18日 从笔记迁移到博客。 实例: $taskAction = New-ScheduledTaskAction -Execute pwsh.exe ` -Argument 'Write-Host "hello world"' $taskTrigger = New-ScheduledTaskTrigger -Daily ` -At '00:00:00' Register-

  • python办公自动化(win32com):word中查找关键字所在段落,并设置段落内容的样式2022-08-24 15:34:56

    from win32com import client # *** wps用kwps.Application;Microsoft word用Word.Application *** doc_app = client.Dispatch("kwps.Application") doc_app.Visible = False doc = doc_app.Documents.Open(r'C:\Users\meiya\PycharmProjects\copyExcelToW

  • 多线程.线程池2022-08-21 10:01:09

    ExecutorService和Executors ExecutorService:真正的线程池接口。常见子类ThreadPoolExecutor void execute(Runnable command):执行任务/命令,没有返回值,一般用来执行Runnable <T>Future<T>submit(Callable<T>tast):执行任务,有返回值,一般用来执行Callable void shutdown():关

  • Failed to execute goal on project 03-dao: Could not resolve dependencies for project com.itheima2022-08-04 19:05:26

    1 问题描述 Maven install时出现的错误Failed to execute goal on project 03-dao: Could not resolve dependencies for project com.itheima 2 解决方法 去掉dao模块、domain模块 pom.xml中的 <packaging>war</packaging>

  • SQL Server教程 - T-SQL-存储过程(PROCEDURE)2022-07-31 09:03:11

    更新记录 转载请注明出处:https://www.cnblogs.com/cqpanda/p/16527496.html 2022年7月31日 发布。 2022年7月2日 从笔记迁移到博客。 存储过程介绍(Stored Procedure) 存储过程是什么 一种编程结构,一系列预编译的SQL语句集合,放在数据库中只用编译一次,调用不用再编译。多条SQL语句

  • Threadpool创建2022-07-27 18:32:43

    线程池基础可以参考 https://www.cnblogs.com/enhance/p/11009997.html   线程池创建方式: newFixedThreadPool: 使用的构造方式为new ThreadPoolExecutor(var0, var0, 0L, TimeUnit.MILLISECONDS, new LinkedBlockingQueue()),设置了corePoolSize=maxPoolSize,keepAliveTime=0(此时

  • Mysql下载安装教程2022-07-27 10:03:22

    一、进入MySql官网进行下载安装包: https://www.mysql.com/downloads/     2、选择对应系统     3、选择安装包下载     二、有Execute就点Execute,没有就next,傻瓜式安装 注意这一步一定选择第二个:  

  • Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:run (default-cli) on project2022-07-25 22:01:06

    # Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:run (default-cli) on project springmvc_03_postandget: Could not start Tomcattomcat启动失败,看看servlet的依赖有没有设置为provided,tomcat内置了servlet,运行时会报错,所以使用provided让其运行时

  • ThinKPHP5调用储存过程与手动执行储存过程结果不同的问题2022-07-08 12:03:03

    测试环境: php: PHP 5.6 框架:ThinkPHP5.1 数据库:SQL Server 2008 R2 问题描述:ThinkPHP5调用储存过程,生成数据有空值。 Db::startTrans(); //直接通过Db类执行sql Db::execute("execute sp_MatStoreNowAll '2022-07-07 17:24:24','01','DateOut','0','PD

  • MySQL安装2022-06-29 21:32:53

    下载mysql https://downloads.mysql.com/archives/installer/   若是第二次安装mysql则这里为upgrading,需要先设置一下   点击cancel 将之前安装过的mysql移除掉     点击next   点击execute     点击add添加mysql   选择想要安装的mysql版本 设置安装路径与仓库地

  • Spring框架系列(8) - Spring IOC实现原理详解之Bean实例化(生命周期,循环依赖等)2022-06-29 06:00:24

    上文,我们看了IOC设计要点和设计结构;以及Spring如何实现将资源配置(以xml配置为例)通过加载,解析,生成BeanDefination并注册到IoC容器中的;容器中存放的是Bean的定义即BeanDefinition放到beanDefinitionMap中,本质上是一个ConcurrentHashMap<String, Object>;并且BeanDefinition接口中包

  • ResultSet 赋值问题2022-06-25 17:36:53

    问题: ​ //操作数据库的公共类 public class BaseDao { ... /*编写查询公共类*/ public static ResultSet execute(Connection con,PreparedStatement preparedStatement,ResultSet resultSet,String sql,Object[] params) throws SQLException { preparedStatement

  • [RxJS] mergeMap, concatMap, exhaustMap: execute order2022-06-21 13:00:53

    mergeMap: order is not ensure Depends on each request, the response order might not be the same as request.   concatMap: order is ensured concatMap ensure the order is preserved exhaustMap: ensure only first inner observable complete then trigger lates

  • 2022/6/182022-06-19 01:00:15

    1、Python连接数据库 要想操作数据库,仅连接数据是不够的,必须拿到操作数据库的游标才能进行后续操作,比如读取数据、添加数据。通过获取到的数据库连接示例conn下的cursor()方法来创建游标。游标用来返回结果。 import pymysql conn = pymysql.connect('locahost',user='root',pass

  • 实战讲解,原来是用 SpringBoot 实现策略模式可以这么简单2022-06-19 00:04:01

    一、介绍一说起策略设计模式,相比大家都不陌生,在实际的业务开发中,合理的使用设计模式来编程,可以让代码阅读起来层次感更强,同时扩展性也会得到提升!最近看同事的代码时候,学到了一个小技巧,在某些场景下合理的使用策略模式还是非常有用的,在此分享一下给大家。二、代码实践在介绍 Spring

  • execute,executeQuery,executeUpdate三个方法有什么区别呢?2022-06-16 23:36:11

    转发: http://www.java265.com/JavaMianJing/202205/16534030093491.html 下文笔者讲述execute,executeQuery,executeUpdate三个方法的区别说明,如下所示 1.Statement execute(String query)方法的功能: 可用于执行任意SQL查询 当查询的结果是一个ResultSet,这个方法就返

  • python3中pymysql模块的事务操作2022-06-15 14:02:13

    try: cursor.execute(sql_1) cursor.execute(sql_2) cursor.execute(sql_3) except Exception as e: connect.rollback() # 事务回滚 print('事务处理失败', e) else: connect.commit() # 事务提交 print('事务处理成功', cursor.rowcount)# 关闭连接 cursor.close() connect.clos

  • 2.6:Python数据存取-文件、文件夹及目录、数据库2022-06-14 12:01:32

    一、Python文件读写 1、文件的打开模式 <class '_io.TextIOWrapper'>和<class '_io.BufferedReader'>。python使用 with  as语句来进行文件打开后的自动关闭处理。使用了with as之后,用户可以不用显式调用文件对象的close方法来关闭文件。Python打开文件的函数是open,其核心参数是

  • 链接数据库2022-06-08 15:32:03

    import pymysql# 建立连接conn = pymysql.connect(host='localhost', user='root', password='flexoffice', db='pc', charset='utf8')# 创建链接的对象cur = conn.cursor()# sql语句sql1 = 'insert into student (s_id,s_name,s_b

  • MySQL错误:The MySQL server is running with the --skip-grant-tables option so it cannot execute this st2022-05-31 11:01:19

    问题描述 输入如下修改密码语句: SET PASSWORD FOR 'root'@'localhost' = PASSWORD('xxxx'); 执行时报如下错误: The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement 解决办法 执行如下语句再执行SQL即可 flush privileges 参

  • quartz(二)2022-05-30 00:00:43

    quartz(二) 通过官网案例,我们会有个疑惑, 为什么调度器(Scheduler)不直接调度任务(Job),而是由触发器(Trigger)去调度呢?是否可以在调度器直接指定一个规则直接调度job呢? 根据官网提供的案例,一共有四个名称指令,为什么会设计的这么麻烦? 首先回答第一个问题,既然任务是由

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有