Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 31 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
31
Dung lượng
94 KB
Nội dung
dimension The dimension of the array to examine (default is 1). The return value is of the Integer data type. You use the UBOUND function to return the highest subscript defined for the specified dimension of an array. UBOUND ( array [, dimension] ) array The name of the array to examine. dimension The dimension of the array to examine (default is 1). The return value is of the Integer data type. Data Type Conversion Functions You use the CDBL function to convert a string or expression into a value of data type Double. CDBL ( expression ) expression Can be any valid Oracle Basic variable or expression. The return value is of the Double data type. You use the CINT function to convert a string or expression into a value of data type Integer. CINT ( expression ) expression Can be any valid Oracle Basic variable or expression. The return value is of the Integer data type. You use the CLNG function to convert a string or expression into a value of data type Long. CLNG ( expression ) Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. expression Can be any valid Oracle Basic variable or expression. The return value is of the Long data type. You use the CSNG function to convert a string or expression into a value of data type Single. CSNG ( expression ) expression Can be any valid Oracle Basic variable or expression. The return value is of the Single data type. You use the CSTR function to convert a string or expression into a value of data type String. CSTR ( expression ) expression Can be any valid Oracle Basic variable or expression. The return value is of the String data type. You use the CVDATE function to convert a string or expression into a value of data type Date. CVDATE ( expression ) expression Can be any valid Oracle Basic variable or expression. The return value is of the Date data type. You use the FIX function to convert a numeric expression into an integer by truncating its fractional part. FIX ( expression ) expression Can be any valid Oracle Basic variable or expression. The return value is of the Integer data type. Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. You use the INT function to convert a numeric expression into an integer by rounding to the nearest value. The rounding operation uses the absolute value of the expression to perform the round operation and then reapplies the sign of the original expression to the rounded value. INT ( expression ) expression Can be any valid Oracle Basic variable or expression. The return value is of the Integer data type. You use the STR function to convert a number or numeric expression into a value of data type String. STR provides a leading space for positive numbers. STR ( expression ) expression Can be any valid Oracle Basic variable or expression. The return value is of the String data type. Date Functions You use the DATE function to return the current system date of your operating system as a String data type. No arguments are required. DATE () The return value is of the String data type. You use the DATEADD function to return a time or date value as the result of adding any number of time intervals to a date variable or expression. DATEADD ( time_interval, num_interval, date ) time_interval A string expression that indicates the type of time interval to add to the date. s or S—Second n or N—Minute h or H—Hour Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. d or D—Day y or Y—Day of year ww or WW—Week w or W—Weekday m or M—Month q or Q—Quarter yyyy or YYYY—Year num_interval The number of time intervals to add to the specified date. date The date to add the time intervals to. The return value is of the Date data type. You use the DATEDIFF function to return the number of time intervals between two specified dates. DATEDIFF ( time_interval, first_date, second_date ) time_interval A string expression that indicates the type of time interval to add to the date. first_date A valid Oracle Basic date variable or expression. second_date A valid Oracle Basic date variable or expression. The return value is of the Date data type. You use the DATEPART function to return the portion of a date value that corresponds to a specified time interval. DATEPART ( time_interval, date ) time_interval A string expression that indicates the type of time interval to add to the date. Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. date A valid Oracle Basic date variable or expression. The return value is of the Date data type. You use the DATESERIAL function to return the complete date with integer arguments representing year, month, and day. DATESERIAL ( year, month, day ) year An integer representing the year. month An integer representing the month. day An integer representing the day. The return value is of the Date data type. You use the DAY function to return a long value between 1 and 31 representing the day portion of the specified date value. DAY ( date ) date A valid Oracle Basic date variable or expression. The return value is of the Long data type. You use the HOUR function to return an integer value between 0 (12:00 a.m.) and 23 (11:00 p.m.) representing the hour portion of the specified date value. HOUR ( date ) date A valid Oracle Basic date variable or expression. The return value is of the String data type. You use the MINUTE function to return an integer value between 0 and 59 representing the minute portion of the specified date value. Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. MINUTE ( date ) date A valid Oracle Basic date variable or expression. The return value is of the Integer data type. You use the MONTH function to return an integer value between 1 and 12 representing the month portion of the specified date value. MONTH ( date ) date A valid Oracle Basic date variable or expression. The return value is of the Integer data type. You use the NOW function to return the current system date of your operating system as a Date data type. No arguments are required. NOW () The return value is of the Date data type. You use the SECOND function to return an integer value between 0 and 59 representing the second portion of the specified date value. SECOND ( date ) date A valid Oracle Basic date variable or expression. The return value is of the Integer data type. You use the SYSDATE function to return the current system date of your operating system as a Date data type. It is identical to the NOW function. No arguments are required. SYSDATE () The return value is of the Date data type. You use the TIME function to return the current system time of your operating system as a String data type. No arguments are required. Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. TIME () The return value is of the String data type. You use the TIMESERIAL function to return the complete time with integer arguments representing hour, minute, and second. TIMESERIAL ( hour, minute, second ) hour An integer representing the hour. minute An integer representing the minute. second An integer representing the second. The return value is of the Date data type. You use the TIMEVALUE function to convert a string into a date return value. TIMEVALUE ( time_value ) time_value A valid Oracle Basic date variable or expression representing a time value. The return value is of the Date data type. You use the WEEKDAY function to return an integer value between 1 (Sunday) and 7 (Saturday) representing the day of the week portion of the specified date value. WEEKDAY ( date ) date A valid Oracle Basic date variable or expression. The return value is of the Integer data type. You use the YEAR function to return an integer between 99 and 10,000, inclusive, that represents the year portion of the specified date value. YEAR ( date ) Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. date A valid Oracle Basic date variable or expression. The return value is of the Integer data type. File Input and Output Functions You use the CURDIR function to return the current path for the default drive (volume). CURRDIR [[(] vol_id [)]] vol_id A string representing the drive or volume to search. The return value is of the String data type. You use the EOF function to test if the file pointer is at the end-of-file marker for the indicated file handle. EOF ( filenum ) filenum An integer number between 1 and 256 representing a file handle as a result of opening a file using the OPEN command. The return value is of the Integer data type. You use the FREEFILE function to return an integer value between 1 and 256, inclusive, representing the next unused file number. No arguments are required. FREEFILE () The return value is of the Integer data type. You use the INPUT function to return a string of characters read from a file opened in the input or binary mode. INPUT ( n, filenum ) n The number of characters to read from the file. filenum An integer number between 1 and 256 representing a file handle as a result of opening a file using the OPEN command. The return value is of the String data type. Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. You use the LOC function to return the current location of the file pointer for the indicated file handle. LOC ( filenum ) filenum An integer number between 1 and 256 representing a file handle as a result of opening a file using the OPEN command. The return value is of the Positive Integer data type. You use the LOF function to return the length (in bytes) of the specified file handle. LOF ( filenum ) filenum An integer number between 1 and 256 representing a file handle as a result of opening a file using the OPEN command. The return value is of the Positive Integer data type. You use the SEEK function to return the position of the next input or output operation for the specified file handle. SEEK ( filenum ) filenum An integer number between 1 and 256 representing a file handle as a result of opening a file using the OPEN command. The return value is of the Long data type between 1 and 2,147,483,647. Financial Functions You use the DDB function to return the amount of an asset's depreciation for a single, specified period using the double- declining balance method. DDB ( asset_cost, salvage, life, period ) asset_cost The initial value paid for the asset. salvage The projected value of the asset at the end of its life expectancy. life The length of time the asset is expected to be useful. Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. period The length of time to calculate the asset's depreciation over. The return value is of the Double data type. You use the FV function to return the future value of an asset, such as an annuity, using a constant interest rate and constant periodic payments. FV ( rate, periods, payment, pv, due_end ) rate The fixed interest rate you estimate that you will be paying over the life of the annuity. periods The total number of payment periods over the life of the annuity. payment The fixed amount of the periodic payment. pv The amount of the annuity. due_end 0 indicates that payments are due at the end of each period. 1 indicates that payments are due at the beginning of each period. The return value is of the Double data type. You use the IPMT function to return the amount applied to interest from a specified periodic payment on an annuity at a fixed interest rate and fixed periodic payments. IPMT ( rate, which_period, periods, pv, fv, due_end ) rate The fixed interest rate you estimate that you will be paying over the life of the annuity. which_period The period to calculate the amount applied to principal. periods The total number of payment periods over the life of the annuity. pv The amount of the annuity. fv The amount of the annuity to be unpaid at the end of the life of the annuity. due_end 0 indicates that payments are due at the end of each period. 1 indicates that payments are due at the beginning of each period. Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. [...]... be any valid Oracle Basic variable or expression The return value is of the Integer data type (-1 = true, 0 = false) You use the NVL function to return either the first expression if it is not NULL or the second expression if the first expression evaluates to NULL NVL ( expression1, expression2 ) expression1 Can be any valid Oracle Basic variable or expression expression2 Can be any valid Oracle Basic... Next Page Home Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark Previous TOC Page 0-672-30681-6 Home Oracle DBA Survival Guide (Book/CD-ROM) 0-672-30757-X Developing Personal Oracle7 Applications $49.99 $45.00 (Book/CD-ROM) 0-0672-30873-8 Essential Oracle7 $25.00 0-672-30609-3 Teach Yourself ODBC Programming in 21 Days $29.99 0-672-30832-0 Teach Yourself Database Programming... represented in radians COS ( numeric_expression ) numeric_expression Any valid Oracle Basic number or numeric expression The return value is of the Double data type You use the EXP function to return the value of e (the natural logarithm, 2.71828) raised to the specified power EXP ( numeric_expression ) numeric_expression Any valid Oracle Basic number or numeric expression The return value is of the Double... ( numeric_expression ) numeric_expression Any valid Oracle Basic number or numeric expression The return value is of the Double data type Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark You use the SIN function to return the sine of an angle represented in radians SIN ( numeric_expression ) numeric_expression Any valid Oracle Basic number or numeric expression The return... number or positive numeric expression SQR ( numeric_expression ) numeric_expression Any valid Oracle Basic number or numeric expression The return value is of the Double data type You use the TAN function to return the tangent of an angle represented in radians TAN ( numeric_expression ) numeric_expression Any valid Oracle Basic number or numeric expression The return value is of the Double data type Selection... be any valid Oracle Basic variable or expression This function returns the data type of the resulting expression Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark You use the IIF function to return a given value when a test condition evaluates to true and another value when it evaluates to false IIF ( expression, val_true, val_false ) expression Can be any valid Oracle Basic... NumDateString, format_string ) NumDateString A number, date, or string variable or expression that will be formatted according to the format_string format_string A string of Oracle Basic formatting characters For more information, refer to the Oracle Power Objects online help under the topic format and the subtopic Format Mask Characters The return value is of the String data type You use the INSTR function... data type Test Functions You use the ERR function to return an integer representing the most recent Oracle Basic run-time error code No arguments are required ERR() The return value is of the Integer data type You use the ERL function to return an integer representing the line number where the most recent Oracle Basic run-time error occurred or the closest preceding line number No arguments are required... www.verypdf.com to remove this watermark ISDATE ( expression ) expression Can be any valid Oracle Basic variable or expression The return value is of the Integer data type(-1 = true, 0 = false) You use the ISNULL function to determine if its argument has a value of NULL ISNULL ( expression ) expression Can be any valid Oracle Basic variable or expression The return value is of the Integer data type (-1 =... (base 10) HEX ( numeric_expression ) numeric_expression Any valid Oracle Basic number or numeric expression The return value is of the String data type You use the OCT function to return a string value representing the octal value (base 8) for a decimal or numeric expression (base 10) OCT ( numeric_expression ) numeric_expression Any valid Oracle Basic number or numeric expression The return value is of . interval to add to the date. first_date A valid Oracle Basic date variable or expression. second_date A valid Oracle Basic date variable or expression. The. value of data type Integer. CINT ( expression ) expression Can be any valid Oracle Basic variable or expression. The return value is of the Integer data