Tag:Syntax error

  • Redis basic business

    Time:2021-4-10

    If redis needs to execute a set of commands, in order to maintain the consistency and continuity of data, it needs to use transaction. In this paper, some simple examples are given to briefly describe the content related to redis transaction, which is only for learning and sharing. If there are any shortcomings, please correct […]

  • Python exception handling

    Time:2021-3-3

    Distinguish exception from syntax error When writing Python programs, errors are often reported. There are usually two kinds of errors: Syntax error:Some grammatical errors are exceptions Exception syntax error Syntax error, also known as parsing error, is one of the most common errors In [1]: while True print(‘Hello!’) File “<ipython-input-1-5c66e4fd0ae9>”, line 1 while True print(‘Hello!’) […]

  • Knowledge sharing: 1 = 1 after where condition in SQL statement is

    Time:2021-2-24

      This code should be generated by the program. The condition after 1 = 1 in the where condition is dynamically changed through the if block. For example:   String sql=”select * from table_name  where 1=1″; if( conditon 1) {   sql=sql+”  and  var2=value2″; } if(conditon 2) {   sql=sql+”  and var3=value3″; } Where 1 […]

  • Problems with mobx

    Time:2021-2-23

    React project using mobx Picture prompt, Compile failure, tell the problem, brother, syntax error. To translate the second line of error is actually a problem of positioning. But I’m always in a hurry. I always like to take it with me and solve it at a glance. If I can’t solve it, I won’t go […]

  • Avoided redundant navigation to current location

    Time:2021-2-18

    This error is encountered in the Vue project, which does not affect the function, but the console will report this error when pushing: vue-router.esm.js?fe87:1958 Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to current location: “/Home”. After searching online for a long time, almost all of them said that there was a problem with the version […]

  • With (nolock) cannot be used in CLR table valued function in SQL Server

    Time:2021-1-8

    staySQL ServerCommon table valued functions(table-valued function)Yes, you can use table tips(Hints-Table)Yes, thenCLRTable valued functions of type(table-valued function)Can table prompts also be used(Hints-Table)What about it? I believe many people have not paid attention to this problem.   Next, I’ll takeYourSQLDbaReady made inCLRTable valued functions to illustrate this problem. If you have a customCLRTable valued function, you […]

  • Use shell script to query the utilization rate of CPU, memory and disk partition of the server

    Time:2020-10-31

    preface: This article will write a shell script to queryUtilization rate of CPU, memory and disk partition of Linux serverShell script is actually composed of basic shell commands, so when writing shell scripts, you need to know the commonly used commands. If you are not very clear, you can refer to this article: Linux learning […]

  • Vscode prompt: type annotations can only be used in typescript files

    Time:2020-9-4

    In the initial version of the project, the original react file is created using the App.js There is a line of code: const App: () => React$Node = () => { A syntax error will be reported in vscode: Type annotations can only be used in TypeScript files You only need to configure it in […]

  • Vue-cli3 jest unit test error reporting solution (does not support ES6)

    Time:2020-5-25

    When using the company project to try unit testing, the company usesjest, found and prompted ES6 related syntax error prompt, there are many online Baidu, various attempts still failed to solve The final solution: Using vue-cli3, we recreated a project with unit test, and found that it ran successfully. Then we copied the dependent version […]

  • The foundation that JS must know “use strict”

    Time:2020-5-7

    Strict mode of JS’use strict’It should be the knowledge that everyone is familiar with. To explain it literally means to write code in strict behavior mode. But what are the rules that constrain us to use strict patterns to standardize our code in the development process? So the purpose of this article is only to […]

  • The process of mining MySQL database

    Time:2020-4-16

    Just after installing mysql, I want to connect to MySQL through Navicat. I found the error 1251. Don’t panic. This is very simple.      First, enter MySQL through CMD. Then change the password rule Alter user ‘root’ @ ‘localhost’ identified with mysql_native_password by ‘your password’; Then change the password Alter user ‘root’ @ ‘localhost’ identified […]

  • Python Foundation (21): exception handling

    Time:2020-3-10

    1. Exceptions and errors 1.1 mistake There are two kinds of errors in the program 1.1.1 syntax error Syntax error: this kind of error cannot pass the syntax detection of Python interpreter at all, and must be corrected before the program is executed. #Demonstration 1 of grammatical errors if #Demonstration 2 of grammatical errors def […]