ICode9

精准搜索请尝试: 精确搜索
  • inner join与 left join 和 on与where 的区别2022-02-09 16:36:06

      select * from test;      select * from test2      select * from test inner join test2 on test.projectId=test2.projectId      共4条记录,test2里有两条projectId=1的,所以连接出两条,主表test的前两天记录不符合连接条件,不显示 -- inner join 结果集是符

  • Redhat7.4-Python安装配置cx_Oracle2022-02-06 16:00:19

    上传必要包文件这里不做赘述。 [zhangsan@test2 ~]$ unzip instantclient-basic-linux.x64-11.2.0.4.0.zip -bash: unzip: 未找到命令[zhangsan@test2 ~]$ yum install -y unzip zip已加载插件:product-id, search-disabled-repos, subscription-manager[zhangsan@test2 ~]$ su - r

  • python函数2022-02-04 11:34:27

    文章目录 一、函数的定义二、4种函数的参数形式三、函数返回值四、函数的作用域,全局/局部变量五、函数的嵌套六、函数的递归 一、函数的定义 # 创建高楼 def create_building(): # 创建房间 create_room() # 创建电梯 create_stair() def create_ro

  • linux中如何使用变量提取连续的行2022-02-03 01:02:10

    1、一般情况提取连续行 测试数据 root@PC1:/home/test2# ls test.txt root@PC1:/home/test2# cat test.txt >1 01 02 >2 03 04 >3 05 06 >4 07 08 >5 09 10 >6 11 12 >7 13 14 >8 15 16 >9 17 18 >10 19 20   2、sed实现,提取2到5行 root@PC1:/home/test2# ls tes

  • linux中如何将多行数据转换为一行数据2022-01-30 23:33:07

    1、测试数据 root@PC1:/home/test2# ls test.txt root@PC1:/home/test2# cat test.txt ## 测试数据 a 3 5 d s g e z c g w k z c m d   2、xargs实现(数据大时不适用) root@PC1:/home/test2# ls test.txt root@PC1:/home/test2# cat test.txt a 3 5 d s g e z c g w k z c m

  • linux中如何统计文件字符数2022-01-30 23:32:07

    1、测试数据 root@PC1:/home/test2# ls test.txt root@PC1:/home/test2# cat test.txt a 3 5 d s g e z root@PC1:/home/test2# cat -A test.txt a 3 5 d$ s g e z$   2、wc -c root@PC1:/home/test2# ls test.txt root@PC1:/home/test2# cat test.txt a 3 5 d s g e z root@P

  • Oracle dmp文件导入(还原)到不同的表空间和不同的用户下2022-01-26 15:02:33

      一、exp/imp 解决方法 1、dmp文件包含导出时候表空间的信息,导入时候如果没有创建相应的表空间会提示表空间不存在2、如果几个表导出,导入时将错误忽略 ignore=y即可 3、用transport_tablespace参数,transport tablespace将一个表空间下的数据移到另一个表空间 3.1、使用transpo

  • 关于达梦8 的快速加载2022-01-26 01:32:08

    dmfldr(DM fast Loader)是达梦 8 提供的快速数据加载的命令行。通过 dmfldr 命令行工具能够把按照特定格式排序的文本数据快速、高效的加载到 DM8 数据库系统中,或把 DM8 数据库中的表数据按照一定格式导出到文本文件。 示例1:将文本 test1.txt 中的数据加载到 DM8 中 1)、准备数据文

  • springMVC-重定向和转发2022-01-23 09:00:07

    1编写两个跳转的页面 <%@ page contentType="text/html;charset=UTF-8" language="java" %> <html> <head> <title>Title</title> </head> <body> 我是转发过来的 </body> </html> <%@ page contentType=&q

  • github 上传文件2022-01-12 17:01:37

    一、新建仓库 1、到要上传的文件夹上,这里要先安装git工具,直接网上下载安装 2、之后就会出现要这个文件夹的终端路径 3、照着下面顺序一条条输入 echo "# test2" >> README.md git init git add . git commit -m "first commit" git branch -M main git remote add origin gi

  • gz文件压缩、解压缩保留源文件2022-01-07 18:02:28

    1、 root@DESKTOP-1N42TVH:/home/test2# ls outcome.map root@DESKTOP-1N42TVH:/home/test2# gzip -c outcome.map > test.gz ## 压缩并保留源文件 root@DESKTOP-1N42TVH:/home/test2# ls outcome.map test.gz   2、 root@DESKTOP-1N42TVH:/home/test2# ls outcome.map tes

  • linux中如何删除^M符号2022-01-05 23:01:26

    1、测试数据 root@DESKTOP-1N42TVH:/home/test2# ls outcome.map root@DESKTOP-1N42TVH:/home/test2# cat -A outcome.map ## 末尾多出^M 1^Is64199.1^I0^I55910^M$ 1^IOAR19_64675012.1^I0^I85204^M$ 1^IOAR19_64715327.1^I0^I122948^M$ 1^IOAR19_64803054.1^I0^I203750^M$

  • 泛型的使用2022-01-05 17:00:56

    public class Test1 { public static void main(String[] args) { Test2<String> test2 = new Test2<String>(); Test2<Integer> test21 = new Test2<Integer>("name",12,34); test2.setEve("yeye")

  • Mysql开放读取权限2022-01-05 09:03:41

    对用户授权  mysql>grant rights on database.* to user@host identified by "pass"; 例1: 增加一个用户test1密码为abc,让他可以在任何主机上登录,并对所有数据库有查询、插入、修改、删除的权限。 grant select,insert,update,delete on *.* to test1@"%" Identified by "abc"; O

  • test2022-01-02 22:00:56

    测试分享功能 下载地址:test2.py:https://url39.ctfile.com/f/35000839-532522820-947376 (访问密码:8449)

  • 大三寒假学习 spark实验12022-01-02 16:02:59

    实验 1 Linux 系统的安装和常用命令 2.使用 Linux 系统的常用命令 (1)切换到目录 /usr/bin;   (2)查看目录/usr/local 下所有的文件;   (3)进入/usr 目录,创建一个名为 test 的目录,并查看有多少目录存在;   (4)在/usr 下新建目录 test1,再复制这个目录内容到/tmp;   (5)将上面的/tmp/test1 目录

  • linux系统中sort命令对字符数字组合字符串进行排序2022-01-02 12:03:47

    1、测试数据 root@DESKTOP-1N42TVH:/home/test2# cat test.txt Chr1 Chr11 Chr7 Chr8 Chr10 Chr2 Chr5 Chr3 Chr4 Chr12 Chr6 Chr9   2、排序 root@DESKTOP-1N42TVH:/home/test2# cat test.txt Chr1 Chr11 Chr7 Chr8 Chr10 Chr2 Chr5 Chr3 Chr4 Chr12 Chr6 Chr9 root@DESKTOP-

  • 前端系列二十六:异常处理2021-12-31 11:07:13

    全局异常处理: 示例:         function test1() {               try {             console.log('test1')             test2( )             } catch ( error ) {                console.log( 'catch in test1', error )

  • List的Insert和Add性能比较2021-12-30 15:34:17

    第一次Insert测试时按照顺序测试: List<int> Test = new List<int>(); for (int i = 0; i < 100000; i++) { Test.Insert(i, i); } Add: List<int> Test2 = new List<int>(); for (int

  • Java实战项目推荐,Java外卖点餐系统【附全部代码】2021-12-26 13:58:34

    傻瓜式外卖点餐系统(无数据库) 项目源码和GitHub地址已经为大家整理好了,有需要的直接文末扫码领取。 tips: 菜品类(菜品id,菜品名,菜品类型,上架时间,单价,月销售,总数量) 管理员类(管理员id,账号,密码) 客户类(客户id,客户名,性别,密码,送餐地址,手机号,创建时间) 订单类(订单号,订单创建

  • linux c随手记2021-12-18 20:04:40

    1: 变量申明   重复include 了相同的文件会报 redefinition 错误 比如 ============== test.c #include <stdio.h> #include "test1.c" #include "test2.c"   ============== test1.c #include "test2.c"   ============== test2.c int A=1; ==============

  • ubuntu中如何解压rar文件2021-12-16 22:00:48

    1、问题 ubuntu中解压rar文件, 如下: root@PC1:/home/test2# ls test.rar root@PC1:/home/test2# unrar e test.rar -bash: /usr/bin/unrar: No such file or directory   2、解决方法, 安装unrar root@PC1:/home/test2# apt install unrar Reading package lists... Done Buildi

  • sudo useradd提权2021-12-16 17:35:21

    sudo配合useradd命令也是可以用来提权的。整体思路是添加一个组为sudo的用户,然后用这个新用户执行sudo su到root 首先看下useradd添加用户的几个必要条件,指定组,指定密码,useradd有这么几个参数可以使用 Usage: useradd [options] LOGIN useradd -D useradd -D [opti

  • HQL语句的调优2021-12-12 12:02:29

    1、去重语句(用group by 来代替distinct) Group by 也有去重的功能,具体内容如下 select distinct customer_id from test_join_order; => select customer_id from test_join_order group by customer_id; 在极大的数据量(且很多重复值)时,可以先group by去重,在count()计

  • linux shell实现将指定行重复指定的次数2021-12-11 23:00:06

    1、测试数据 root@ubuntu01:/home/test2# cat test.txt ## 实现将每一行按照第二行数字指定的行数重复 1 3 e3rt idf 2 2 32 ffj 3 5 cc kkk 4 4 wf 34     2、while + for循环实现 root@ubuntu01:/hom

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

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

ICode9版权所有