新增运行环境和安装包

This commit is contained in:
terry.wang
2025-11-26 17:23:54 +08:00
parent 80be2ed45e
commit 03eccc8911
436 changed files with 697398 additions and 0 deletions

Binary file not shown.

View File

@@ -0,0 +1 @@
SELECT * FROM trans_history

View File

@@ -0,0 +1 @@
SELECT *FROM user_info

View File

@@ -0,0 +1,125 @@
LICENSE ISSUES
==============
The OpenSSL toolkit stays under a double license, i.e. both the conditions of
the OpenSSL License and the original SSLeay license apply to the toolkit.
See below for the actual license texts.
OpenSSL License
---------------
/* ====================================================================
* Copyright (c) 1998-2019 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. All advertising materials mentioning features or use of this
* software must display the following acknowledgment:
* "This product includes software developed by the OpenSSL Project
* for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
*
* 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
* endorse or promote products derived from this software without
* prior written permission. For written permission, please contact
* openssl-core@openssl.org.
*
* 5. Products derived from this software may not be called "OpenSSL"
* nor may "OpenSSL" appear in their names without prior written
* permission of the OpenSSL Project.
*
* 6. Redistributions of any form whatsoever must retain the following
* acknowledgment:
* "This product includes software developed by the OpenSSL Project
* for use in the OpenSSL Toolkit (http://www.openssl.org/)"
*
* THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
* EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
* ====================================================================
*
* This product includes cryptographic software written by Eric Young
* (eay@cryptsoft.com). This product includes software written by Tim
* Hudson (tjh@cryptsoft.com).
*
*/
Original SSLeay License
-----------------------
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
*
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* "This product includes cryptographic software written by
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
* 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
*
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
* [including the GNU Public Licence.]
*/

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,684 @@
[ABS]
declaration=number
category=Math Functions
description=ABS calculates the absolute value of a number, where that number can be a literal or an expression that evaluates to a number.
[ACOS]
declaration=number
category=Math Functions
description=ACOS is a trigonometric function that returns the arc cosine of a number. The return value is in radians and is between PI/2 and -PI/2.
[ADD_MONTHS]
declaration=date,timestamp,integer
category=Date and Time Functions
description=ADD_MONTHS adds the specified number of months to a date or time stamp value or expression. The DATEADD function provides similar functionality.
[APPROXIMATE]
declaration=percentile,expr
category=Aggregate Functions
description=APPROXIMATE PERCENTILE_DISC is an inverse distribution function that assumes a discrete distribution model. It takes a percentile value and a sort specification and returns an element from the given set. Approximation enables the function to execute much faster, with a low relative error of around 0.5 percent.
[ASIN]
declaration=number
category=Math Functions
description=ASIN is a trigonometric function that returns the arc sine of a number. The return value is in radians and is between PI/2 and -PI/2.
[ATAN2]
declaration=number1,number2
category=Math Functions
description=ATAN2 is a trigonometric function that returns the arc tangent of a one number divided by another number. The return value is in radians and is between PI/2 and -PI/2.
[ATAN]
declaration=number
category=Math Functions
description=ATAN is a trigonometric function that returns the arc tangent of a number. The return value is in radians and is between PI/2 and -PI/2.
[AVG]
declaration=expression
category=Aggregate Functions
description=The AVG function returns the average (arithmetic mean) of the input expression values. The AVG function works with numeric values and ignores NULL values.
[BIT_AND]
declaration=expression
category=Bit-Wise Aggregate Functions
description=
[BIT_OR]
declaration=expression
category=Bit-Wise Aggregate Functions
description=
[BOOL_AND]
declaration=expression
category=Bit-Wise Aggregate Functions
description=
[BOOL_OR]
declaration=expression
category=Bit-Wise Aggregate Functions
description=
[BTRIM]
declaration=string,matching_string
category=String Functions
description=The BTRIM function trims a string by removing leading and trailing blanks or by removing characters that match an optional specified string.
[BTTEXT_PATTERN_CMP]
declaration=
category=String Functions
description=Synonym for the BPCHARCMP function.
[CASE]
declaration=expression,value,result,Boolean condition
category=Conditional Expressions
description=The CASE expression is a conditional expression, similar to if/then/else statements found in other languages. CASE is used to specify a result when there are multiple conditions.
[CAST]
declaration=expression,type
category=Data Type Formatting Functions
description=You can do run-time conversions between compatible data types by using the CAST and CONVERT functions.
[CBRT]
declaration=
category=Math Functions
description=The CBRT function is a mathematical function that calculates the cube root of a number.
[CEILING]
declaration=number
category=Math Functions
description=The CEILING or CEIL function is used to round a number up to the next whole number. (The FLOOR Function rounds a number down to the next whole number.)
[CEIL]
declaration=number
category=Math Functions
description=The CEILING or CEIL function is used to round a number up to the next whole number. (The FLOOR Function rounds a number down to the next whole number.)
[CHARACTER_LENGTH]
declaration=
category=String Functions
description=Synonym of the LEN function.
[CHARINDEX]
declaration=substring,string
category=String Functions
description=Returns the location of the specified substring within a string. Synonym of the STRPOS function.
[CHAR_LENGTH]
declaration=
category=String Functions
description=Synonym of the LEN function.
[CHECKSUM]
declaration=expression
category=Math Functions
description=Computes a checksum value for building a hash index.
[CHR]
declaration=number
category=String Functions
description=The CHR function returns the character that matches the ASCII code point value specified by of the input parameter.
[COALESCE]
declaration=
category=Conditional Expressions
description=Synonym of the NVL expression.
[CONCAT]
declaration=string1,string2
category=String Functions
description=The CONCAT function concatenates two character strings and returns the resulting string. To concatenate more than two strings, use nested CONCAT functions. The concatenation operator (||) between two strings produces the same results as the CONCAT function.
[CONVERT]
declaration=expression,type
category=Data Type Formatting Functions
description=You can do run-time conversions between compatible data types by using the CAST and CONVERT functions.
[CONVERT_TIMEZONE]
declaration=source_timezone,target_timezone,timestamp
category=Date and Time Functions
description=CONVERT_TIMEZONE converts a time stamp from one time zone to another.
[COS]
declaration=number
category=Math Functions
description=COS is a trigonometric function that returns the cosine of a number. The return value is in radians and is between PI/2 and -PI/2.
[COT]
declaration=number
category=Math Functions
description=COT is a trigonometric function that returns the cotangent of a number. The input parameter must be nonzero.
[COUNT]
declaration=expression
category=Aggregate Functions
description=The COUNT function counts the rows defined by the expression.
[CRC32]
declaration=string
category=String Functions
description=CRC32 is an error-detecting function that uses a CRC32 algorithm to detect changes between source and target data. The CRC32 function converts a variable-length string into an 8-character string that is a text representation of the hexadecimal value of a 32 bit-binary sequence.
[CUME_DIST]
declaration=partition_expression,order_list
category=Window Functions
description=Calculates the cumulative distribution of a value within a window or partition. Assuming ascending ordering, the cumulative distribution is determined using this formula:
[CURRENT_DATABASE]
declaration=
category=System Information Functions
description=Returns the name of the database where you are currently connected.
[CURRENT_DATE]
declaration=
category=Date and Time Functions
description=CURRENT_DATE returns a date in the current session time zone (UTC by default) in the default format: YYYY-MM-DD.
[CURRENT_SCHEMAS]
declaration=include_implicit
category=System Information Functions
description=Returns an array of the names of any schemas in the current search path. The current search path is defined in the search_path parameter.
[CURRENT_SCHEMA]
declaration=
category=System Information Functions
description=Returns the name of the schema at the front of the search path. This schema will be used for any tables or other named objects that are created without specifying a target schema.
[CURRENT_SETTING]
declaration=parameter
category=System Administration Functions
description=CURRENT_SETTING returns the current value of the specified configuration parameter.
[CURRENT_USER]
declaration=
category=System Information Functions
description=Returns the user name of the current "effective" user of the database, as applicable to checking permissions. Usually, this user name will be the same as the session user; however, this can occasionally be changed by superusers.
[CURRENT_USER_ID]
declaration=
category=System Information Functions
description=Returns the unique identifier for the Amazon Redshift user logged in to the current session.
[DATEADD]
declaration=datepart,interval,date,timestamp
category=Date and Time Functions
description=Increments a date or time stamp value by a specified interval.
[DATEDIFF]
declaration=datepart,datepart boundaries,date,timestamp
category=Date and Time Functions
description=DATEDIFF returns the difference between the date parts of two date or time expressions.
[DATE_CMP]
declaration=date1,date2
category=Date and Time Functions
description=DATE_CMP compares two dates. The function returns 0 if the dates are identical, 1 if date1 is greater, and -1 if date2 is greater.
[DATE_CMP_TIMESTAMPTZ]
declaration=date,timestamptz
category=Date and Time Functions
description=DATE_CMP_TIMESTAMPTZ compares a date to a time stamp with time zone. If the date and time stamp values are identical, the function returns 0. If the date is greater alphabetically, the function returns 1. If the time stamp is greater, the function returns 1.
[DATE_CMP_TIMESTAMP]
declaration=date,timestamp
category=Date and Time Functions
description=Compares a date to a time stamp and returns 0 if the values are identical, 1 if date is greater alphabetically and -1 if timestamp is greater.
[DATE_PART]
declaration=datepart,date,timestamp
category=Date and Time Functions
description=DATE_PART extracts datepart values from an expression. DATE_PART is a synonym of the PGDATE_PART function.
[DATE_PART_YEAR]
declaration=date
category=Date and Time Functions
description=The DATE_PART_YEAR function extracts the year from a date.
[DATE_TRUNC]
declaration=datepart,timestamp
category=Date and Time Functions
description=The DATE_TRUNC function truncates a time stamp expression or literal based on the date part that you specify, such as hour, week, or month. DATE_TRUNC returns the first day of the specified year, the first day of the specified month, or the Monday of the specified week.
[DECODE]
declaration=expression,search,result,default
category=Conditional Expressions
description=A DECODE expression replaces a specific value with either another specific value or a default value, depending on the result of an equality condition. This operation is equivalent to the operation of a simple CASE expression or an IF-THEN-ELSE statement.
[DEGREES]
declaration=number
category=Math Functions
description=Converts an angle in radians to its equivalent in degrees.
[DENSE_RANK]
declaration=expr_list,order_list
category=Window Functions
description=The DENSE_RANK window function determines the rank of a value in a group of values, based on the ORDER BY expression in the OVER clause. If the optional PARTITION BY clause is present, the rankings are reset for each group of rows. Rows with equal values for the ranking criteria receive the same rank. The DENSE_RANK function differs from RANK in one respect: If two or more rows tie, there is no gap in the sequence of ranked values. For example, if two rows are ranked 1, the next rank is 2.
[DEXP]
declaration=number
category=Math Functions
description=The DEXP function returns the exponential value in scientific notation for a double precision number. The only difference between the DEXP and EXP functions is that the parameter for DEXP must be a double precision.
[DLOG10]
declaration=number
category=Math Functions
description=The DLOG10 returns the base 10 logarithm of the input parameter. Synonym of the LOG function.
[DLOG1]
declaration=
category=Math Functions
description=The DLOG1 function returns the natural logarithm of the input parameter. Synonym for the LN function.
[EXP]
declaration=expression
category=Math Functions
description=The EXP function returns the exponential value in scientific notation for a numeric expression.
[EXTRACT]
declaration=datepart,literal,timestamp
category=Date and Time Functions
description=The EXTRACT function returns a date part, such as a day, month, or year, from a time stamp value or expression.
[FIRST_VALUE]
declaration=expression,expr_list,order_list,frame_clause
category=Window Functions
description=Given an ordered set of rows, FIRST_VALUE returns the value of the specified expression with respect to the first row in the window frame. The LAST_VALUE function returns the value of the expression with respect to the last row in the frame.
[FLOOR]
declaration=number
category=Math Functions
description=The FLOOR function rounds a number down to the next whole number.
[FUNC_SHA1]
declaration=string
category=String Functions
description=The FUNC_SHA1 function uses the SHA1 cryptographic hash function to convert a variable-length string into a 40-character string that is a text representation of the hexadecimal value of a 160-bit checksum.
[GETDATE]
declaration=
category=Date and Time Functions
description=GETDATE returns the current date and time in the current session time zone (UTC by default).
[GREATEST]
declaration=expression_list
category=Conditional Expressions
description=Returns the largest value from a list of any number of expressions.
[HAS_DATABASE_PRIVILEGE]
declaration=user,database,privilege
category=System Information Functions
description=Returns true if the user has the specified privilege for the specified database. For more information about privileges, see GRANT.
[HAS_SCHEMA_PRIVILEGE]
declaration=user,schema,privilege
category=System Information Functions
description=Returns true if the user has the specified privilege for the specified schema. For more information about privileges, see GRANT.
[HAS_TABLE_PRIVILEGE]
declaration=user,table,privilege
category=System Information Functions
description=Returns true if the user has the specified privilege for the specified table.
[INITCAP]
declaration=string
category=String Functions
description=Capitalizes the first letter of each word in a specified string. INITCAP supports UTF-8 multibyte characters, up to a maximum of four bytes per character.
[INTERVAL_CMP]
declaration=interval1,interval2
category=Date and Time Functions
description=INTERVAL_CMP compares two intervals and returns 1 if the first interval is greater, -1 if the second interval is greater, and 0 if the intervals are equal. For more information, see Interval Literals.
[IS_VALID_JSON]
declaration=json_string
category=JSON Functions
description=IS_VALID_JSON validates a JSON string. The function returns Boolean true (t) if the string is properly formed JSON or false (f) if the string is malformed. To validate a JSON array, use IS_VALID_JSON_ARRAY Function
[IS_VALID_JSON_ARRAY]
declaration=json_array
category=JSON Functions
description=IS_VALID_JSON_ARRAY validates a JSON array. The function returns Boolean true (t) if the array is properly formed JSON or false (f) if the array is malformed. To validate a JSON string, use IS_VALID_JSON Function
[JSON_ARRAY_LENGTH]
declaration=json_array,null_if_invalid
category=JSON Functions
description=JSON_ARRAY_LENGTH returns the number of elements in the outer array of a JSON string. If the null_if_invalid argument is set to true and the JSON string is invalid, the function returns NULL instead of returning an error.
[JSON_EXTRACT_ARRAY_ELEMENT_TEXT]
declaration=json_string,pos,null_if_invalid
category=JSON Functions
description=JSON_EXTRACT_ARRAY_ELEMENT_TEXT returns a JSON array element in the outermost array of a JSON string, using a zero-based index. The first element in an array is at position 0. If the index is negative or out of bound, JSON_EXTRACT_ARRAY_ELEMENT_TEXT returns empty string. If the null_if_invalid argument is set to true and the JSON string is invalid, the function returns NULL instead of returning an error.
[JSON_EXTRACT_PATH_TEXT]
declaration=json_string,path_elem,null_if_invalid
category=JSON Functions
description=JSON_EXTRACT_PATH_TEXT returns the value for the key:value pair referenced by a series of path elements in a JSON string. The JSON path can be nested up to five levels deep. Path elements are case-sensitive. If a path element does not exist in the JSON string, JSON_EXTRACT_PATH_TEXT returns an empty string. If the null_if_invalid argument is set to true and the JSON string is invalid, the function returns NULL instead of returning an error.
[LAG]
declaration=value_expr,offset,window_partition,window_ordering
category=Window Functions
description=The LAG window function returns the values for a row at a given offset above (before) the current row in the partition.
[LAST_DAY]
declaration=
category=Date and Time Functions
description=LAST_DAY returns the date of the last day of the month that contains date. The return type is always DATE, regardless of the data type of the date argument.
[LAST_VALUE]
declaration=expression,expr_list,order_list,frame_clause
category=Window Functions
description=Given an ordered set of rows, FIRST_VALUE returns the value of the specified expression with respect to the first row in the window frame. The LAST_VALUE function returns the value of the expression with respect to the last row in the frame.
[LEAD]
declaration=value_expr,offset,window_partition,window_ordering
category=Window Functions
description=The LEAD window function returns the values for a row at a given offset below (after) the current row in the partition.
[LEAST]
declaration=expression_list
category=Conditional Expressions
description=Returns the smallest value from a list of any number of expressions.
[LEFT]
declaration=string,integer
category=String Functions
description=These functions return the specified number of leftmost or rightmost characters from a character string.
[LENGTH]
declaration=
category=String Functions
description=Synonym of the LEN function.
[LEN]
declaration=expression
category=String Functions
description=Returns the length of the specified string as the number of characters.
[LISTAGG]
declaration=aggregate_expression,delimiter,WITHIN GROUP (ORDER BY order_list)
category=Aggregate Functions
description=For each group in a query, the LISTAGG aggregate function orders the rows for that group according to the ORDER BY expression, then concatenates the values into a single string.
[LN]
declaration=expression
category=Math Functions
description=Returns the natural logarithm of the input parameter. Synonym of the DLOG1 function.
[LOG]
declaration=number
category=Math Functions
description=Returns the base 10 logarithm of a number.
[LOWER]
declaration=string
category=String Functions
description=Converts a string to lowercase. LOWER supports UTF-8 multibyte characters, up to a maximum of four bytes per character.
[LPAD]
declaration=string1,length,string2
category=String Functions
description=These functions prepend or append characters to a string, based on a specified length.
[LTRIM]
declaration=string,trim_chars
category=String Functions
description=The LTRIM function trims a specified set of characters from the beginning of a string.
[MAX]
declaration=expression
category=Aggregate Functions
description=The MAX function returns the maximum value in a set of rows. DISTINCT or ALL may be used but do not affect the result.
[MD5]
declaration=string
category=String Functions
description=Uses the MD5 cryptographic hash function to convert a variable-length string into a 32-character string that is a text representation of the hexadecimal value of a 128-bit checksum.
[MEDIAN]
declaration=median_expression
category=Aggregate Functions
description=Calculates the median value for the range of values. NULL values in the range are ignored.
[MIN]
declaration=expression
category=Aggregate Functions
description=The MIN function returns the minimum value in a set of rows. DISTINCT or ALL may be used but do not affect the result.
[MOD]
declaration=number1,number2
category=Math Functions
description=The MOD function returns a numeric result that is the remainder of two numeric parameters. The first parameter is divided by the second parameter.
[MONTHS_BETWEEN]
declaration=date1,date2
category=Date and Time Functions
description=MONTHS_BETWEEN determines the number of months between two dates.
[NEXT_DAY]
declaration=date,timestamp,day
category=Date and Time Functions
description=NEXT_DAY returns the date of the first instance of the specified day that is later than the given date.
[NTH_VALUE]
declaration=expr,offset,window_partition,window_ordering,frame_clause
category=Window Functions
description=The NTH_VALUE window function returns the expression value of the specified row of the window frame relative to the first row of the window.
[NTILE]
declaration=expr,window_partition,window_ordering
category=Window Functions
description=The NTILE window function divides ordered rows in the partition into the specified number of ranked groups of as equal size as possible and returns the group that a given row falls into.
[NULLIF]
declaration=expression1, expression2
category=Conditional Expressions
description=The NULLIF expression compares two arguments and returns null if the arguments are equal.
[NVL2]
declaration=expression,not_null_return_value,null_return_value
category=Conditional Expressions
description=Returns one of two values based on whether a specified expression evaluates to NULL or NOT NULL.
[NVL]
declaration=
category=Conditional Expressions
description=An NVL expression is identical to a COALESCE expression. NVL and COALESCE are synonyms.
[OCTET_LENGTH]
declaration=expression
category=String Functions
description=Returns the length of the specified string as the number of bytes.
[PERCENTILE_CONT]
declaration=percentile,expr
category=Aggregate Functions
description=PERCENTILE_CONT is an inverse distribution function that assumes a continuous distribution model. It takes a percentile value and a sort specification, and returns an interpolated value that would fall into the given percentile value with respect to the sort specification.
[PERCENTILE_DISC]
declaration=percentile,expr
category=Aggregate Functions
description=APPROXIMATE PERCENTILE_DISC is an inverse distribution function that assumes a discrete distribution model. It takes a percentile value and a sort specification and returns an element from the given set. Approximation enables the function to execute much faster, with a low relative error of around 0.5 percent.
[PERCENT_RANK]
declaration=partition_expression,order_list
category=Window Functions
description=Calculates the percent rank of a given row. The percent rank is determined using this formula:
[PG_BACKEND_PID]
declaration=
category=System Information Functions
description=Returns the process ID (PID) of the server process handling the current session.
[PG_CANCEL_BACKEND]
declaration=pid
category=System Administration Functions
description=Cancels a query. PG_CANCEL_BACKEND is functionally equivalent to the CANCEL command. You can cancel queries currently being run by your user. Superusers can cancel any query.
[PG_GET_COLS]
declaration=name
category=System Information Functions
description=Returns the column metadata for a table or view definition.
[PG_GET_LATE_BINDING_VIEW_COLS]
declaration=
category=System Information Functions
description=Returns the column metadata for all late-binding views in the database. For more information, see Late-Binding Views
[PG_LAST_COPY_COUNT]
declaration=
category=System Information Functions
description=Returns the number of rows that were loaded by the last COPY command executed in the current session. PG_LAST_COPY_COUNT is updated with the last COPY ID, which is the query ID of the last COPY that began the load process, even if the load failed. The query ID and COPY ID are updated when the COPY command begins the load process.
[PG_LAST_COPY_ID]
declaration=
category=System Information Functions
description=Returns the query ID of the most recently executed COPY command in the current session. If no COPY commands have been executed in the current session, PG_LAST_COPY_ID returns -1.
[PG_LAST_QUERY_ID]
declaration=
category=System Information Functions
description=Returns the query ID of the most recently executed query in the current session. If no queries have been executed in the current session, PG_LAST_QUERY_ID returns -1. PG_LAST_QUERY_ID does not return the query ID for queries that execute exclusively on the leader node. For more information, see Leader NodeOnly Functions.
[PG_LAST_UNLOAD_COUNT]
declaration=
category=System Information Functions
description=Returns the number of rows that were unloaded by the last UNLOAD command executed in the current session. PG_LAST_UNLOAD_COUNT is updated with the query ID of the last UNLOAD, even if the operation failed. The query ID is updated when the UNLOAD is executed. If the UNLOAD fails because of a syntax error or because of insufficient privileges, PG_LAST_UNLOAD_COUNT returns the count for the previous UNLOAD. If no UNLOAD commands were executed in the current session, or if the last UNLOAD failed during the unload operation, PG_LAST_UNLOAD_COUNT returns 0.
[PG_LAST_UNLOAD_ID]
declaration=
category=System Information Functions
description=Returns the query ID of the most recently executed UNLOAD command in the current session. If no UNLOAD commands have been executed in the current session, PG_LAST_UNLOAD_ID returns -1.
[PG_TERMINATE_BACKEND]
declaration=pid
category=System Administration Functions
description=Terminates a session. You can terminate a session owned by your user. A superuser can terminate any session.
[PI]
declaration=
category=Math Functions
description=The PI function returns the value of PI to 14 decimal places.
[POSITION]
declaration=substring,string
category=String Functions
description=Returns the location of the specified substring within a string.
[POWER]
declaration=expression1,expression2
category=Math Functions
description=The POWER function is an exponential function that raises a numeric expression to the power of a second numeric expression.
[QUOTE_IDENT]
declaration=string
category=String Functions
description=The QUOTE_IDENT function returns the specified string as a double quoted string so that it can be used as an identifier in a SQL statement. Appropriately doubles any embedded double quotes.
[QUOTE_LITERAL]
declaration=string
category=String Functions
description=The QUOTE_LITERAL function returns the specified string as a quoted string so that it can be used as a string literal in a SQL statement. If the input parameter is a number, QUOTE_LITERAL treats it as a string. Appropriately doubles any embedded single quotes and backslashes.
[RADIANS]
declaration=string
category=Math Functions
description=Converts an angle in degrees to its equivalent in radians.
[RANDOM]
declaration=
category=Math Functions
description=The RANDOM function generates a random value between 0.0 and 1.0.
[RANK]
declaration=expr_list,order_list
category=Window Functions
description=The RANK window function determines the rank of a value in a group of values, based on the ORDER BY expression in the OVER clause. If the optional PARTITION BY clause is present, the rankings are reset for each group of rows. Rows with equal values for the ranking criteria receive the same rank. Amazon Redshift adds the number of tied rows to the tied rank to calculate the next rank and thus the ranks might not be consecutive numbers. For example, if two rows are ranked 1, the next rank is 3.
[RATIO_TO_REPORT]
declaration=ratio_expression,partition_expression
category=Window Functions
description=Calculates the ratio of a value to the sum of the values in a window or partition. The ratio to report value is determined using the formula:
[REGEXP_COUNT]
declaration=source_string,pattern,position
category=String Functions
description=Searches a string for a regular expression pattern and returns an integer that indicates the number of times the pattern occurs in the string. If no match is found, then the function returns 0. For more information about regular expressions, see POSIX Operators.
[REGEXP_INSTR]
declaration=source_string,pattern,position,occurrence,option,parameters
category=String Functions
description=Searches a string for a regular expression pattern and returns an integer that indicates the beginning position or ending position of the matched substring. If no match is found, then the function returns 0. REGEXP_INSTR is similar to the POSITION function, but lets you search a string for a regular expression pattern. For more information about regular expressions, see POSIX Operators.
[REGEXP_REPLACE]
declaration=source_string,pattern,replace_string,position
category=String Functions
description=Searches a string for a regular expression pattern and replaces every occurrence of the pattern with the specified string. REGEXP_REPLACE is similar to the REPLACE Function, but lets you search a string for a regular expression pattern. For more information about regular expressions, see POSIX Operators.
[REGEXP_SUBSTR]
declaration=source_string,pattern,position,occurrence,parameters
category=String Functions
description=Returns the characters extracted from a string by searching for a regular expression pattern. REGEXP_SUBSTR is similar to the SUBSTRING Function function, but lets you search a string for a regular expression pattern. For more information about regular expressions, see POSIX Operators.
[REPEAT]
declaration=string,integer
category=String Functions
description=Repeats a string the specified number of times. If the input parameter is numeric, REPEAT treats it as a string.
[REPLACE]
declaration=string,old_chars,new_chars,old_string
category=String Functions
description=Replaces all occurrences of a set of characters within an existing string with other specified characters.
[REPLICATE]
declaration=
category=String Functions
description=Synonym for the REPEAT function.
[REVERSE]
declaration=expression
category=String Functions
description=The REVERSE function operates on a string and returns the characters in reverse order. For example, reverse('abcde') returns edcba. This function works on numeric and date data types as well as character data types; however, in most cases it has practical value for character strings.
[RIGHT]
declaration=string,integer
category=String Functions
description=These functions return the specified number of leftmost or rightmost characters from a character string.
[ROUND]
declaration=number
category=Math Functions
description=The ROUND function rounds numbers to the nearest integer or decimal.
[ROW_NUMBER]
declaration=expr_list,order_list
category=Window Functions
description=Determines the ordinal number of the current row within a group of rows, counting from 1, based on the ORDER BY expression in the OVER clause. If the optional PARTITION BY clause is present, the ordinal numbers are reset for each group of rows. Rows with equal values for the ORDER BY expressions receive the different row numbers nondeterministically.
[RPAD]
declaration=string1,length,string2
category=String Functions
description=These functions prepend or append characters to a string, based on a specified length.
[RTRIM]
declaration=string,trim_chars
category=String Functions
description=The RTRIM function trims a specified set of characters from the end of a string.
[SESSION_USER]
declaration=
category=System Information Functions
description=Returns the name of the user associated with the current session. This is the user who initiated the current database connection.
[SET_CONFIG]
declaration=parameter,new_value,is_local
category=System Administration Functions
description=Sets a configuration parameter to a new setting.
[SIGN]
declaration=numeric
category=Math Functions
description=The SIGN function returns the sign (positive or negative) of a numeric value. The result of the SIGN function will be a 1, -1, or 0 indicating the sign of the argument.
[SIN]
declaration=number
category=Math Functions
description=SIN is a trigonometric function that returns the sine of a number. The return value is in radians and is between PI/2 and -PI/2.
[SLICE_NUM]
declaration=
category=System Information Functions
description=Returns an integer corresponding to the slice number in the cluster where the data for a row is located. SLICE_NUM takes no parameters.
[SPLIT_PART]
declaration=string,delimiter,part
category=String Functions
description=Splits a string on the specified delimiter and returns the part at the specified position.
[SQRT]
declaration=expression
category=Math Functions
description=The SQRT function returns the square root of a numeric value.
[STDDEV_POP]
declaration=
category=Aggregate Functions
description=The STDDEV_SAMP and STDDEV_POP functions return the sample and population standard deviation of a set of numeric values (integer, decimal, or floating-point). The result of the STDDEV_SAMP function is equivalent to the square root of the sample variance of the same set of values.
[STDDEV_SAMP]
declaration=
category=Aggregate Functions
description=The STDDEV_SAMP and STDDEV_POP functions return the sample and population standard deviation of a set of numeric values (integer, decimal, or floating-point). The result of the STDDEV_SAMP function is equivalent to the square root of the sample variance of the same set of values.
[STRPOS]
declaration=string,substring
category=String Functions
description=Returns the position of a substring within a specified string.
[STRTOL]
declaration=num_string,base
category=String Functions
description=Converts a string expression of a number of the specified base to the equivalent integer value. The converted value must be within the signed 64-bit range.
[SUBSTRING]
declaration=string,start_position,number_characters
category=String Functions
description=Returns the characters extracted from a string based on the specified character position for a specified number of characters.
[SUM]
declaration=expression
category=Aggregate Functions
description=The SUM function returns the sum of the input column or expression values. The SUM function works with numeric values and ignores NULL values.
[SYSDATE]
declaration=
category=Date and Time Functions
description=SYSDATE returns the current date and time in the current session time zone (UTC by default).
[TAN]
declaration=number
category=Math Functions
description=TAN is a trigonometric function that returns the tangent of a number. The input parameter must be a non-zero number (in radians).
[TEXTLEN]
declaration=
category=String Functions
description=Synonym of LEN function.
[TIMEOFDAY]
declaration=
category=Date and Time Functions
description=TIMEOFDAY is a special alias used to return the weekday, date, and time as a string value.
[TIMESTAMPTZ_CMP]
declaration=timestamptz1,timestamptz2
category=Date and Time Functions
description=TIMESTAMPTZ_CMP compares the value of two time stamp with time zone values and returns an integer. If the time stamps are identical, the function returns 0. If the first time stamp is greater alphabetically, the function returns 1. If the second time stamp is greater, the function returns 1.
[TIMESTAMPTZ_CMP_DATE]
declaration=timestamptz,date
category=Date and Time Functions
description=TIMESTAMPTZ_CMP_DATE compares the value of a time stamp and a date. If the time stamp and date values are identical, the function returns 0. If the time stamp is greater alphabetically, the function returns 1. If the date is greater, the function returns 1.
[TIMESTAMPTZ_CMP_TIMESTAMP]
declaration=timestamptz,timestamp
category=Date and Time Functions
description=TIMESTAMPTZ_CMP_TIMESTAMP compares the value of a time stamp with time zone expression with a time stamp expression. If the time stamp with time zone and time stamp values are identical, the function returns 0. If the time stamp with time zone is greater alphabetically, the function returns 1. If the time stamp is greater, the function returns 1.
[TIMESTAMP_CMP]
declaration=timestamp1,timestamp2
category=Date and Time Functions
description=Compares the value of two time stamps and returns an integer. If the time stamps are identical, the function returns 0. If the first time stamp is greater alphabetically, the function returns 1. If the second time stamp is greater, the function returns 1.
[TIMESTAMP_CMP_DATE]
declaration=timestamp,date
category=Date and Time Functions
description=TIMESTAMP_CMP_DATE compares the value of a time stamp and a date. If the time stamp and date values are identical, the function returns 0. If the time stamp is greater alphabetically, the function returns 1. If the date is greater, the function returns 1.
[TIMESTAMP_CMP_TIMESTAMPTZ]
declaration=timestamp,timestamptz
category=Date and Time Functions
description=TIMESTAMP_CMP_TIMESTAMPTZ compares the value of a time stamp expression with a time stamp with time zone expression. If the time stamp and time stamp with time zone values are identical, the function returns 0. If the time stamp is greater alphabetically, the function returns 1. If the time stamp with time zone is greater, the function returns 1.
[TIMEZONE]
declaration=timezone,timestamp,timestamptz
category=Date and Time Functions
description=TIMEZONE returns a time stamp for the specified time zone and time stamp value.
[TO_CHAR]
declaration=timestamp_expression,numeric_expression,format
category=Data Type Formatting Functions
description=TO_CHAR converts a time stamp or numeric expression to a character-string data format.
[TO_DATE]
declaration=string,format
category=Data Type Formatting Functions
description=TO_DATE converts a date represented in a character string to a DATE data type.
[TO_HEX]
declaration=number
category=Math Functions
description=The TO_HEX function converts a number to its equivalent hexadecimal value.
[TO_NUMBER]
declaration=string,format
category=Data Type Formatting Functions
description=TO_NUMBER converts a string to a numeric (decimal) value.
[TO_TIMESTAMP]
declaration=timestamp,format
category=Date and Time Functions
description=TO_TIMESTAMP converts a TIMESTAMP string to TIMESTAMPTZ.
[TRANSLATE]
declaration=expression,characters_to_replace,characters_to_substitute
category=String Functions
description=For a given expression, replaces all occurrences of specified characters with specified substitutes. Existing characters are mapped to replacement characters by their positions in the characters_to_replace and characters_to_substitute arguments. If more characters are specified in the characters_to_replace argument than in the characters_to_substitute argument, the extra characters from the characters_to_replace argument are omitted in the return value.
[TRIM]
declaration=characters,string
category=String Functions
description=The TRIM function trims a string by removing leading and trailing blanks or by removing characters that match an optional specified string.
[TRUNC]
declaration=number,integer,timestamp
category=Math Functions
description=The TRUNC function truncates a number and right-fills it with zeros from the position specified. This function also truncates a time stamp and returns a date.
[TRUNC]
declaration=timestamp
category=Date and Time Functions
description=Truncates a time stamp and returns a date.
[UPPER]
declaration=string
category=String Functions
description=Converts a string to uppercase. UPPER supports UTF-8 multibyte characters, up to a maximum of four bytes per character.
[USER]
declaration=
category=System Information Functions
description=Synonym for CURRENT_USER. See CURRENT_USER.
[VAR_POP]
declaration=
category=Aggregate Functions
description=The VAR_SAMP and VAR_POP functions return the sample and population variance of a set of numeric values (integer, decimal, or floating-point). The result of the VAR_SAMP function is equivalent to the squared sample standard deviation of the same set of values.
[VAR_SAMP]
declaration=
category=Aggregate Functions
description=The VAR_SAMP and VAR_POP functions return the sample and population variance of a set of numeric values (integer, decimal, or floating-point). The result of the VAR_SAMP function is equivalent to the squared sample standard deviation of the same set of values.
[VERSION]
declaration=
category=System Information Functions
description=The VERSION() function returns details about the currently installed release, with specific Amazon Redshift version information at the end.

View File

@@ -0,0 +1,340 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Lesser General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,36 @@
Copyright (C)2000 - 2025 - Ansgar Becker
HeidiSQL is free. You don't have to pay for it, and you can use it any
way you want. It is developed as an Open Source project under the GNU
General Public License (GPL). That means you have full access to the source
code of this program. You can find it at GitHub here:
https://github.com/HeidiSQL/HeidiSQL
The General Public License (GPL) is shipped with the installer-package and
should be located in the same folder as this file (gpl.txt).
If you simply wish to install and use this software, you need only be aware
of the disclaimer conditions in the license, which are set out below.
NO WARRANTY
Because the program is licensed free of charge, there is no warranty for the
program, to the extent permitted by applicable law. Except when otherwise
stated in writing the copyright holders and/or other parties provide the
program "as is" without warranty of any kind, either expressed or implied,
including, but not limited to, the implied warranties of merchantability and
fitness for a particular purpose. The entire risk as to the quality and
performance of the program is with you. Should the program prove defective,
you assume the cost of all necessary servicing, repair or correction.
In no event unless required by applicable law or agreed to in writing will
any copyright holder, or any other party who may modify and/or redistribute
the program as permitted above, be liable to you for damages, including any
general, special, incidental or consequential damages arising out of the use
or inability to use the program (including but not limited to loss of data
or data being rendered inaccurate or losses sustained by you or third
parties or a failure of the program to operate with any other programs),
even if such holder or other party has been advised of the possibility of
such damages.
This product includes software developed by the OpenSSL Project
for use in the OpenSSL Toolkit. (http://www.openssl.org/)

Binary file not shown.

View File

@@ -0,0 +1,110 @@
SessionManager_WindowLeft<|||>3<|||>448
SessionManager_WindowTop<|||>3<|||>129
ColWidths_connform.ListSessions<|||>1<|||>163,50,50,50,50,50,10
ColsVisible_connform.ListSessions<|||>1<|||>0,1,4,6
ColPositions_connform.ListSessions<|||>1<|||>0,1,2,3,4,5,6
ColSort_connform.ListSessions<|||>1<|||>0,0
MainWinOnMonitor<|||>3<|||>0
MainWinWidth<|||>3<|||>881
MainWinHeight<|||>3<|||>467
ColWidths_MainForm.ListDatabases<|||>1<|||>150,80,50,50,50,50,50,50,50,50,120
ColsVisible_MainForm.ListDatabases<|||>1<|||>0,1,2,3,4,5,6,7,8,9,10
ColPositions_MainForm.ListDatabases<|||>1<|||>0,1,2,3,4,5,6,7,8,9,10
ColSort_MainForm.ListDatabases<|||>1<|||>0,0
ColWidths_MainForm.ListVariables<|||>1<|||>160,200,316
ColsVisible_MainForm.ListVariables<|||>1<|||>0,1,2
ColPositions_MainForm.ListVariables<|||>1<|||>0,1,2
ColSort_MainForm.ListVariables<|||>1<|||>0,0
ColWidths_MainForm.ListStatus<|||>1<|||>160,316,100,100
ColsVisible_MainForm.ListStatus<|||>1<|||>0,1,2,3
ColPositions_MainForm.ListStatus<|||>1<|||>0,1,2,3
ColSort_MainForm.ListStatus<|||>1<|||>0,0
ColWidths_MainForm.ListProcesses<|||>1<|||>70,80,80,80,80,50,50,186
ColsVisible_MainForm.ListProcesses<|||>1<|||>0,1,2,3,4,5,6,7
ColPositions_MainForm.ListProcesses<|||>1<|||>0,1,2,3,4,5,6,7
ColSort_MainForm.ListProcesses<|||>1<|||>0,1
ColWidths_MainForm.ListCommandStats<|||>1<|||>120,100,100,100,256
ColsVisible_MainForm.ListCommandStats<|||>1<|||>0,1,2,3,4
ColPositions_MainForm.ListCommandStats<|||>1<|||>0,1,2,3,4
ColSort_MainForm.ListCommandStats<|||>1<|||>1,1
ColWidths_MainForm.ListTables<|||>1<|||>120,70,70,120,120,70,100,50,70,70,70,70,70,90,120,70,70,70,50
ColsVisible_MainForm.ListTables<|||>1<|||>0,1,2,3,4,5,6,18
ColPositions_MainForm.ListTables<|||>1<|||>0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18
ColSort_MainForm.ListTables<|||>1<|||>0,0
LastSessions<|||>1<|||>Unnamed
LastActiveSession<|||>1<|||>Unnamed
SessionManager_WindowHeight<|||>3<|||>483
CreateDbCollation<|||>1<|||>utf8mb4_general_ci
FileDialogEncoding_MainForm<|||>3<|||>0
querymemoheight<|||>3<|||>159
queryhelperswidth<|||>3<|||>167
dbtreewidth<|||>3<|||>316
DataPreviewHeight<|||>3<|||>84
sqloutheight<|||>3<|||>67
MainWinMaximized<|||>3<|||>1
ColWidths_frmTableEditor.listColumns<|||>1<|||>40,100,167,90,60,65,50,128,130,149,100,100,50,50
ColsVisible_frmTableEditor.listColumns<|||>1<|||>0,1,2,3,4,5,6,7,8,9,10,11,12,13
ColPositions_frmTableEditor.listColumns<|||>1<|||>0,1,2,3,4,5,6,7,8,9,10,11,12,13
ColSort_frmTableEditor.listColumns<|||>1<|||>-1,0
ColWidths_frmTableEditor.treeIndexes<|||>1<|||>247,100,80,120,80
ColsVisible_frmTableEditor.treeIndexes<|||>1<|||>0,1,2,3,4
ColPositions_frmTableEditor.treeIndexes<|||>1<|||>0,1,2,3,4
ColSort_frmTableEditor.treeIndexes<|||>1<|||>-1,0
ColWidths_frmTableEditor.listForeignKeys<|||>1<|||>196,80,100,80,80,97
ColsVisible_frmTableEditor.listForeignKeys<|||>1<|||>0,1,2,3,4,5
ColPositions_frmTableEditor.listForeignKeys<|||>1<|||>0,1,2,3,4,5
ColSort_frmTableEditor.listForeignKeys<|||>1<|||>-1,0
ColWidths_frmTableEditor.listCheckConstraints<|||>1<|||>200,433
ColsVisible_frmTableEditor.listCheckConstraints<|||>1<|||>0,1
ColPositions_frmTableEditor.listCheckConstraints<|||>1<|||>0,1
ColSort_frmTableEditor.listCheckConstraints<|||>1<|||>-1,0
SQLFile0<|||>1<|||>D:\智能采血\HeidiSQL_12.10_64_Portable\Backups\query-tab-2025-11-05_17-55-45-246.sql
SQLFile1<|||>1<|||>D:\智能采血\测试.sql
SQLFile2<|||>1<|||>D:\智能采血\user_info.sql
SQLFile3<|||>1<|||>D:\智能采血\hospital301.sql
Servers\Unnamed\SessionCreated<|||>1<|||>2025-10-29 12:45:08
Servers\Unnamed\Host<|||>1<|||>127.0.0.1
Servers\Unnamed\WindowsAuth<|||>3<|||>0
Servers\Unnamed\CleartextPluginEnabled<|||>3<|||>0
Servers\Unnamed\User<|||>1<|||>root
Servers\Unnamed\Password<|||>1<|||>8
Servers\Unnamed\LoginPrompt<|||>3<|||>0
Servers\Unnamed\Port<|||>1<|||>3306
Servers\Unnamed\NetType<|||>3<|||>0
Servers\Unnamed\Compressed<|||>3<|||>0
Servers\Unnamed\LocalTimeZone<|||>3<|||>0
Servers\Unnamed\QueryTimeout<|||>3<|||>30
Servers\Unnamed\KeepAlive<|||>3<|||>20
Servers\Unnamed\FullTableStatus<|||>3<|||>1
Servers\Unnamed\Databases<|||>1<|||>
Servers\Unnamed\Library<|||>1<|||>libmariadb.dll
Servers\Unnamed\Comment<|||>1<|||>
Servers\Unnamed\StartupScriptFilename<|||>1<|||>
Servers\Unnamed\TreeBackground<|||>3<|||>536870911
Servers\Unnamed\SSHtunnelActive<|||>3<|||>0
Servers\Unnamed\SshExecutable<|||>1<|||>
Servers\Unnamed\SSHtunnelHost<|||>1<|||>
Servers\Unnamed\SSHtunnelHostPort<|||>3<|||>22
Servers\Unnamed\SSHtunnelUser<|||>1<|||>
Servers\Unnamed\SSHtunnelPassword<|||>1<|||>7
Servers\Unnamed\SSHtunnelTimeout<|||>3<|||>4
Servers\Unnamed\SSHtunnelPrivateKey<|||>1<|||>
Servers\Unnamed\SSHtunnelPort<|||>3<|||>3307
Servers\Unnamed\SSL_Active<|||>3<|||>0
Servers\Unnamed\SSL_Key<|||>1<|||>
Servers\Unnamed\SSL_Cert<|||>1<|||>
Servers\Unnamed\SSL_CA<|||>1<|||>
Servers\Unnamed\SSL_Cipher<|||>1<|||>
Servers\Unnamed\SSL_Verification<|||>3<|||>2
Servers\Unnamed\IgnoreDatabasePattern<|||>1<|||>
Servers\Unnamed\LogFileDdl<|||>3<|||>0
Servers\Unnamed\LogFileDml<|||>3<|||>0
Servers\Unnamed\LogFilePath<|||>1<|||>C:\Users\Administrator\AppData\Roaming\HeidiSQL\Logs\%session\%db\%y%m%d.sql
Servers\Unnamed\ServerVersionFull<|||>1<|||>8.1.0 - MySQL Community Server - GPL
Servers\Unnamed\ConnectCount<|||>3<|||>7
Servers\Unnamed\ServerVersion<|||>3<|||>80100
Servers\Unnamed\LastConnect<|||>1<|||>2025-11-05 18:01:38
Servers\Unnamed\lastUsedDB<|||>1<|||>hospital301
Servers\Unnamed\RefusedCount<|||>3<|||>1
Servers\Unnamed\QueryHistory\1<|||>1<|||>2025-10-29 13:57:06|hospital301|0|SELECT * FROM trans_history
Servers\Unnamed\QueryHistory\3<|||>1<|||>2025-11-05 18:01:42|hospital301|0|SELECT *FROM user_info

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,14 @@
[2025-10-29_12-43-12-680]
BackupFilename=
Caption=<EFBFBD><EFBFBD><EFBFBD><EFBFBD>.sql
pid=4324
EditorHeight=159
HelpersWidth=167
TabFocused=0
Filename=D:\<5C><><EFBFBD>ܲ<EFBFBD>Ѫ\<5C><><EFBFBD><EFBFBD>.sql
[2025-11-05_17-55-45-246]
BackupFilename=D:\<5C><><EFBFBD>ܲ<EFBFBD>Ѫ\HeidiSQL_12.10_64_Portable\Backups\query-tab-2025-11-05_17-55-45-246.sql
pid=4324
EditorHeight=159
HelpersWidth=200
TabFocused=1

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More