What are the commonly used functions in Informix?
Informix database contains a variety of commonly used functions, including the following:
- String functions:
- LENGTH: Returns the length of the string.
- CONCAT: Joining two strings together.
- SUBSTRING: Returns a substring of a string.
- TRIM: Remove any extra spaces at the beginning or end of a string.
- Numeric function
- ABS: Returns the absolute value of a number.
- CEILING: Returns the smallest integer that is greater than or equal to the given number.
- FLOOR: Returns the maximum integer that is less than or equal to the given number.
- ROUND: Round the given number.
- Date and time functions:
- CURRENT:返回当前日期和时间。
- Extract the date part from the given date and time.
- – Extract the time part from the given date and time.
- TIMESTAMP: Combining a date and time to create a timestamp.
- Aggregate function:
- AVG calculates the average value of a numerical column.
- COUNT: Calculate the number of rows or the count of non-empty values.
- MAX: Retrieve the maximum value from a numeric column.
- MIN: Return the minimum value of the numerical column.
- Calculate the total sum of the numerical column.
This is just a small subset of commonly used functions available in Informix, there are many other functions that can be used for different purposes. For specific usage instructions, you can refer to Informix’s official documentation or search for relevant resources.