Tag:variable

  • Instructions for using PostgreSQL SQL statement variables

    Time:2022-7-12

    We use general variables in functions. Here we develop requirements. We need to use variables directly in SQL to find some problems, such as time variables, which should be filtered according to time There are three ways to achieve this 1. PSQL command uses variables The data in the table are as follows: hank=> select […]

  • A simple example of accessing Lua script variables through Lua API in C language

    Time:2022-7-1

    1. introduction This section introduces some Lua APIs about stack operation and data type judgment, which can be used to obtain variable values in scripts. 2. steps Write test01 Lua script, create a console c++ program in VS2003 and configure it correctly, execute it to view the results, and modify test02 View the execution result […]

  • Parsing variables in ruby in detail

    Time:2022-5-27

     variableThe storage location that holds the data of the program to be used. RubyThere are five types of variables supported. A brief description of these variables has been experienced in the previous chapters. The five types of variables described in this chapter.Ruby global variables: Global variables start with $. Uninitialized global variables have a value […]

  • VBScript tutorial lesson 4 VBScript variables

    Time:2022-5-25

    VBScript variable Variables are easy-to-use placeholders that reference computer memory addresses that store program information that can be changed when a script runs. For example, you can create a variable called clickcount to store the number of times a user clicks an object on a web page. You don’t need to know the address of […]

  • Shell script is used to monitor the execution process of shell script and the value of variables

    Time:2022-5-19

    Many times, we will write shell programs to complete some moments without repeated wheel building. However, because there will be functions and variables in the shell statements, we need to monitor the variables and other variable factors in the specific execution process because of which related operations are executed after running. Let’s write a small […]

  • Perl constant, multidimensional array and variable initialization example code

    Time:2022-4-20

    Example 1: Copy codeThe code is as follows: #!/usr/bin/perl use strict; use warnings; my $test = “asdf”; print “${test}_test2\n”; #constant use constant {     AAA => “aaa”,     BBB=> “bbb”,     MIN_TOTAL => 12,     SCORE_PASS => 90,     SCORE_RED => 70, }; print AAA; print SCORE_PASS; #two dimesion arrays my @steps = (       […]

  • Lua judges whether the variable is a number, whether the string can be converted to a number, etc

    Time:2022-4-19

    1、 Lua determines whether it is a character or a number Copy codeThe code is as follows: –If it’s a variable to judge   local t = type(x); if t == “number” then— it’s a number else if t == “string” then— is a string end –If the string is a string and you want […]

  • An example is given to analyze the difference between PHP constants and variables

    Time:2022-4-13

    explain 1. There is no dollar sign before the constant; 2. Constants can only be defined with the define() function and const keyword, not with assignment statements; 3. The rule that constants can define and access variable ranges anywhere; 4. Once a constant is defined, it cannot be redefined or undefined until the script is […]

  • Explain the scope of go language variables in detail

    Time:2022-4-3

    catalogue local variable global variable Formal parameters Initialize local and global variables The scope is the scope of the constant, type, variable, function or package represented by the declared identifier in the source code. Variables in go language can be declared in three places: Variables defined in a function are called local variables Variables defined […]

  • Variables and constants in Python

    Time:2022-3-24

    catalogue 1、 Differences between variables and constants 2、 Variable 1. Variables in Python do not need to declare types 2. Assign value to variable with “=” 3. Assignment 4. Variables 5. “=” 6. Python allows you to assign values to multiple variables at the same time 3、 Constant 4、 Summary 1、 Differences between variables and […]

  • Talk about the language structure and variables of golang

    Time:2022-3-10

    catalogue 1、 Language and structure considerations 2、 Execution and packaging of golang 3、 Variables of golang 1. Define variables 2. Variable name rules 1、 Language and structure considerations ? 1 2 3 4 5 6 7 Package main // declares the main package, indicating that it is currently an executable program   Import “FMT” // […]

  • Parsing Perl syntax and using Perl variables

    Time:2022-2-23

    This article focuses on discussing with youPerl syntaxPerl variables are divided into scalar variables, array variables and relational array variables Perl variables are sensitive to size. For example, an, an and an are three different variables, but the variables of different examples can use the same name. Introduction to Perl syntax 1. Perl variables 1.1. […]