Tag:Lieutenant general

  • Problems of SQL statements in Oracle


    1. A method of splicing a field of multiple queried records into a string in Oracle Listagg: (19C is also available) select listagg(name,’,’) within (order by id) from table In 10g, WM is used_ concat: select wm_concat(name) from table wm_ Concat is undocument Listagg is the name of 11g document 2. Select the record with […]

  • Diagram and code implementation of rank insert sort in rust algorithm


    Rust code is slightly different from other languages in the process of writing because of its compilerNo unsafe writing is allowedTherefore, the longest time spent in the process of code writing is to find the cause of compilation error. It’s also good – after the code is written,stabilityA lot of money! The following is the […]

  • Using Maven to add local dependencies


    Sometimes projects use__ jar__ Package in__ maven__ If you can’t find it in the library, you can store it in the local library directly__ pom.xml__ Lieutenant general__ jar__ The package is added to the dependency of the project through configuration. The specific configuration is as follows: <dependency> <groupId>group-id</groupId> <artifactId>artifact-id</artifactId> <version>2.0</version> <scope>system</scope> <systemPath>${project.basedir}/src/main/xxx</systemPath> </dependency> <plugin> <groupId>org.apache.maven.plugins</groupId> […]

  • Link and controller


    In angular, the link is executed after the controller How to reference controller’s function in link? Suppose the controller defines a function function A () {} If you want to use this function in link, you need to use it ————Bind the function to $scope in the controller. $scope.A = A; You can get function […]

  • Using Axios for data transmission in Vue


    1. Installing Axios Execute under current project foldernpm install axios ,npm install axios –saveIt is an obsolete command. Since npm5.0.0, it has been integrated by default — save. Nownpm install axiosAxios will be added to the project automatically package.json Medium.Npmv5.0.0 update log 2. In main.js Import Axios into the file import axios from ‘axios’ Register […]

  • Django failed to use MySQL under mac


    function python manage.py makemigrations Will report an error django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module. Did you install mysqlclient? After that, even if mysqlclient is installed, an error will still be reported solve: pip install pymysql Under the project directory__ init__ . py plus import pymysql pymysql.install_as_MySQLdb() Then in the python installation environment, Python 3.6/site-packages/django/db/backends/mysql/ base.py Comment […]