Tag:ergodic

  • Oracle SQL tree structure query

    Time:2020-11-15

    The select statement in Oracle can use start with… Connect by prior clause to realize recursive query. Connect by is used in structured query, and its basic syntax is as follows: Copy codeThe code is as follows: select * from tablename start with cond1 connect by cond2 where cond3; In short, a tree structure is […]

  • PHP array operation details [traversal, pointer, function, etc.]

    Time:2020-11-3

    This article summarizes the PHP array operation. For your reference, the details are as follows: array Data consists of elements, which consist of keys and values Array classification Associative arrayAssociative array. The subscript of an element has a logical relationship with the value of an element, which is called an associative array. In other words, […]

  • The ifelse of JSP custom tag and the example of traversing custom tag

    Time:2020-10-19

    The first example:Simple JSP custom tag to get content:First create a JSP instance class, and then inherit the simpletagsupport classThen implement the dotag () method of the parent classIn this method, we get the content of the tag body this.getJspBody ();Return the jspfragment class, and call invoke according to this class object( this.getJspContext ().getOut());This method […]

  • Java list uses traversal to analyze three methods of deletion operation

    Time:2020-9-23

    This article mainly introduces three methods of Java list using traversal to delete operation. The article introduces in detail through the example code, which has a certain reference learning value for everyone’s study or work, and friends in need can refer to it How to traverse the list conveniently in Java 1. For loop: Common […]

  • JavaScript traversal array method code instance

    Time:2020-6-17

    This article mainly introduces the method code example of JavaScript traversing array. The example code is introduced in detail in this article, which has certain reference learning value for your study or work. You can refer to the following for friends who need it For loop let arr=[“A”,”B”,”C”,”D”,”E”,”F”]; for(let i=0;i<arr.length;i++){ console.log(arr[i]); } for…of Iterate through […]

  • Go Language Dictionary (map) usage example analysis [create, fill, traverse, search, modify, delete]

    Time:2020-4-5

    This paper gives an example of the usage of go Language Dictionary (map). To share with you for your reference, as follows: A dictionary is a built-in data structure that holds an unordered collection of key value pairs. (1) Dictionary creation 1) make(map[KeyType]ValueType, initialCapacity) 2) make(map[KeyType]ValueType) 3) map[KeyType]ValueType{} 4) map[KeyType]ValueType{key1 : value1, key2 : value2, […]

  • An example of list implementation in golang

    Time:2020-2-16

    Preface In order to quickly review the basic grammar knowledge of go, we intend to use the basic grammar and characteristics of go to realize some common data structures and sorting algorithms. By analyzing how to realize some basic data structures, we can quickly learn the grammar characteristics of go. The memory is more profound […]

  • Collected multiple instances of ruby traversal folder code

    Time:2019-9-3

    1. Traverse all files under folders and output file names Copy codeThe code is as follows: def traverse_dir(file_path)     if File.directory? file_path         Dir.foreach(file_path) do |file|             if file !=”.” and file !=”..”                 traverse_dir(file_path+”/”+file)             end         end     else         puts “File:#{File.basename(file_path)}, Size:#{File.size(file_path)}”     end end traverse_dir(‘D:/apache-tomcat’) 2. Ruby traversal folders Copy codeThe […]

  • Example of JS simple traversal method for obtaining attribute values in objects

    Time:2019-7-14

    This paper illustrates the method of simply traversing JS to get the attribute value in the object. Share for your reference, as follows: <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”> <html xmlns=”http://www.w3.org/1999/xhtml”> <head> <meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ /> <title>www.jb51.net JS traversal JSON attribute value </title> </head> <body> <script> // JS gets attribute values in […]

  • Sync. Map in Goang concurrently creates and reads the actual combat record of the problem

    Time:2019-6-19

    Background: We have a go project, which uses zmq4 for communication, a simple RPC process, the early remote use of a map to do IP and specific socket mapping. problem Probably so. struct SocketMap { sync.Mutex sockets map[string]*zmq4.Socket } Then the code at the time of the call is probably like this: func (pushList *SocketMap) […]

  • Explanation of an example of traversing ajax data return

    Time:2019-6-9

    Background returned data: ReciveList: [{receive_dept_id”:”1007873″,”receive_dept_desc”,”district company leader”,”guid”,”2016112316042622494230″,”receive_platform_id”,”001″,{receive_dept_id”, “1007876”, “receive_dept_desc”, “director”, “guid”, “20161123160426240391”, “receive_platform_id”, “001”]} In fact, careful analysis of the return format, it is very simple, is a Map, which put a List, List contains various parameters. Front-end page requests $.ajax({ url:”/moduleAuthen/default.do?method=loadAllReceive”, DataType: “json”, // Returns data in JSON format Data: $(” fom1″). serialize, // […]

  • How Oracle merges multiple sys_refcursors

    Time:2019-5-15

    Background In data development, sometimes you need to merge two dynamic cursors sys_refcursor. Develop a stored procedure PROC_A, which has complex business logic and long code length. In order to develop a PROC_B after a period of time, we need to use the same logic as PROC_A, and in this process, we also need to […]