ICode9

精准搜索请尝试: 精确搜索
  • 【PostgreSQL】PostgreSQL脚本2022-06-27 10:00:31

    #查看用户权限1 select grantor,grantee,table_catalog,table_schema,table_name,privilege_type,is_grantable,with_hierarchy from information_schema.table_privileges WHERE grantee = 'abce';    #查看用户权限2 SELECT grantee ,table_catalog ,table_s

  • mysql创建用户并授权指定库权限2022-06-10 10:38:41

    创建用户 CREATE USER 'testUser'@'%' IDENTIFIED BY 'testUser'; 授权 GRANT SELECT, INSERT, UPDATE, REFERENCES, DELETE, CREATE, DROP, ALTER, INDEX, TRIGGER, CREATE VIEW, SHOW VIEW, EXECUTE, ALTER ROUTINE, CREATE ROUTINE, CREATE TEMP

  • mysql创建用户并授权指定库权限2022-06-10 10:38:39

    创建用户 CREATE USER 'testUser'@'%' IDENTIFIED BY 'testUser'; 授权 GRANT SELECT, INSERT, UPDATE, REFERENCES, DELETE, CREATE, DROP, ALTER, INDEX, TRIGGER, CREATE VIEW, SHOW VIEW, EXECUTE, ALTER ROUTINE, CREATE ROUTINE, CREATE TEMP

  • go routine chan用法2022-03-05 12:31:25

    点击查看代码 package main import ( "fmt" "time" ) func write(ch chan int) { for i := 0; i < 100; i++ { ch <- i fmt.Println("Put data:", i) } } func read(ch chan int) { for { fmt.Println("Read data:",&l

  • golang编程总结(六)go语句,错误处理与panic,2022-03-02 18:02:42

    go语句 1.当通过go语句创建一个go routine时,会在空闲的routine队列中查找是否有空闲的routine,如果有就调度到运行的routine队列中,否则创建一个routine,然后等待运行,所以一条go语句执行到这个go语句的函数被执行,有一段等待的时间。

  • 一直学习和工作保持兴奋不容易累的总结2022-01-23 22:02:44

      1,有固定的routine或者一个良好工作场所(一定不要是家里!)刺激自己进入工作状态! 2,在保持输入的同时保持输出(比如与人闲聊自己遇到的问题)!(由喜欢转发自己看的新闻有感,如果一直听很累,但是转发后就没那么累)!

  • Routine Afternoon Tea2021-08-30 21:00:34

    这里是 Nickel 与 Windy 下午茶的日常,在不聊一些正经的学术话题时,她们经常分享一些奇怪的想法。尽管这些想法可能没有什么意义,但是为了让这些曾经在自己脑子中存在过的东西不会埋没在记忆的海洋里,Nickel 决定将这些交谈的片段记录下来,于是就有了此篇散散的小记 qwq W:Nickel,为什么

  • 蚁群算法代码2021-08-03 16:02:43

    在网上看了一些蚁群算法原理,其中最为广泛的应用还是那个旅行家问题(TSP)。诸如粒子群优化算法,蚁群算法都可以求一个目标函数的最小值问题的。 下面代码记录下跑的代码。蚁群算法中最为重要的就是目标函数和信息素矩阵的设计。其他的参数则为信息素重要程度,信息素挥发速度,适应度的重

  • MySQL进程管理 及导出(表和存储过程)创建语句2021-07-16 17:31:44

    1. 查询Mysql的进程 -- 查看全部进程 show processlist; -- 查询进行中的进程 select *from information_schema.processlist where command not in('Sleep','Killed'); -- 查询某个库的进程 select *from information_schema.processlist where db='dw'; -- 杀掉某进程, 从

  • MySQL存储过程执行授权的深入解析()2021-05-14 17:31:17

    项目开发中设计期的创建存储过程的MySQL账号与投产后可能会不同,遇到了错误: execute command denied to use 'dba'@'192.168.3.100' for routine 'db.proc' 1、Stored Routines and MySQL Privileges 以下是MySQL5.7官方文档: 23.2.2 Stored Routines and MySQL Privileges Th

  • handle和handler的理解2021-05-14 09:58:22

    维基百科对handler的解释: Handler, an asynchronous callback (computer programming) subroutine in computing ... Event handler, a routine for processing a programming event Interrupt handler, a routine for processing CPU interrupts Signal handler, a routine

  • Mysql权限整理2021-04-30 21:05:17

         all privileges权限有哪些:   select, insert, update, delete, create, drop,references, index,alter,create temporary tables,lock tables,execute,create view,show view,create routine, alter routine,event,trigger  

  • ORA-29876 无法执行ODCIINDEXDELETE例行程序 处理过程2021-04-13 09:01:19

    ORA-29876 无法执行ODCIINDEXDELETE例行程序 处理过程  一个朋友在执行DELETE FROM T WHERE ID='9' 时报 ORA-29876错误,如下                    [oracle@edsir4p1-PROD1 ~]$ oerr ora 29876  29876, 00000, "failed in the execution of the ODCIINDEXDELE

  • PostgreSQL常用命令及SQL--持续更新2021-03-06 11:01:45

    查询系统表 查询视图 select * from pg_views t where viewname like 'entity_sourcing%' ; 查询表 select * from pg_tables t where tablename like 'entity%' and schemaname = 'da_rre_srm' 查询函数 select routine_name ,routine_schema, T.* from i

  • Python OS模块(内置模块)2021-02-20 21:04:03

    OS模块 属于python中的内置模块,专门用来处理系统相关的操作 使用方法:直接使用导入使用     import OS 具体的使用方法如下: 1.文件路径的获取: py文件的地址    具体的实现过程: import os #获取当前文件的绝对路径 file_path=os.path.abspath(__file__) print(file_path)

  • MySQL中关于存储过程和函数的操作2021-01-29 09:31:40

    -- 查看一个数据库中的所有存储过程合函数 -- Is there a way to view all stored procedures and stored functions in a given database SELECT ROUTINE_TYPE, ROUTINE_NAME FROM INFORMATION_SCHEMA.ROUTINES WHERE ROUTINE_SCHEMA='trd'; -- The body of a stored routin

  • 24.重构2021-01-01 18:34:07

    Reasons to refactor: code is duplicated;A routine is too long; A routine has a poor name;A loop is too long or too deeply nested;A class has poor cohesion; A class interface does not provide a consistent level of abstraction; One class is overly intimate

  • MySQL function & procedure2020-12-22 15:03:16

        show procedure status where db='employees'\G   alter procedure sp sql security invoker;   select * from information_schema.Routines where ROUTINE_NAME='sp_name'\G   alter procedure ui modifies sql data sql security

  • java 工厂模式 从无到有-到简单工厂模式-到工厂方法模式-抽象工厂模式2019-11-27 21:55:11

    工厂模式定义(百度百科): 工厂模式是我们最常用的实例化对象模式了,是用工厂方法代替new操作的一种模式。著名的Jive论坛 ,就大量使用了工厂模式,工厂模式在Java程序系统可以说是随处可见。因为工厂模式就相当于创建实例对象的new,我们经常要根据类Class生成实例对象,如A a=new A() 工厂

  • InfoObject 0PROD_ID加载数据报错2019-08-09 21:01:24

    原文链接:http://www.cnblogs.com/marvin-qian/archive/2013/06/13/3134434.html 做CRM BI CONTENT激活并加载数据,在做某个DSO的激活的时候,报错如下 Characteristic value ‘0000000000000000000000000000000100000036′ of characteristic 0PROD_ID 查

  • golang 之 context包2019-07-09 22:02:02

    概述     context是Go中广泛使用的程序包,由Google官方开发,在1.7版本引入。它用来简化在多个go routine传递上下文数据、(手动/超时)中止routine树等操作,比如,官方http包使用context传递请求的上下文数据,gRpc使用context来终止某个请求产生的routine树。每个Context应该视为只读的,

  • Assignment 4: Refactoring and Patterns2019-06-25 20:01:54

    Assignment 4: Refactoring and PatternsYou work for an educational software company that is developing a suite of simple Physicssimulations. The code in pendulum.zip is the beginning of a suite intended to permit the creation ofa series of different types

  • MySQL——自定义函数(7)2019-05-05 18:52:31

    一.自定义函数 1.自定义函数:用户自定义的函数(user-defined function,UDF)是一种对MySQL扩展的途径,其用法与内置函数相同。 2.自定义函数得两个必要条件:(1)参数(2)返回值 3.函数可以返回任意类型的值,同样可以接受这些类型的参数(参数的数量理论上来讲不能超过1024个) 二.创建自定义函数

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

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

ICode9版权所有