advanced sql Functions in Oracle 10G phần 10

Chức năng này làm cho một chuỗi có chiều dài nhất định bằng cách thêm (padding) một bộ quy định các ký tự bên trái của chuỗi ban đầu. LPAD là viết tắt của định dạng chung cho chức năng này là "pad trái": Chức năng này loại bỏ một tập hợp các ký tự từ bên trái của một chuỗi. LTRIM là viết tắt của định dạng chung cho chức năng này là "cắt trái": | String Functions LOWER This function converts every letter of a string to lowercase. The general format for this function is LOWER string For example the query SELECT LOWER PUTS IN LOWERCASE FROM dual Will give LOWER PUTSINLOWER puts in lowercase LPAD This function makes a string a certain length by adding padding a specified set of characters to the left of the original string. LPAD stands for left pad. The general format for this function is LPAD string length_to_make_string what_to_add_to_left_of_string For example the query SELECT LPAD Column 15 . FROM dual Will give LPAD COLUMN 1 .Column 360 Appendix I LTRIM This function removes a set of characters from the left of a string. LTRIM stands for left trim. The general format for this function is LTRIM string characters_to_remove For example the query SELECT LTRIM .Mitho . FROM dual Will give LTRIM Mitho REGEXP_INSTR This function returns the location beginning of a pattern in a given string. REGEXP_INSTR extends the regular INSTR string function by allowing searches of regular expressions. The simplest form of this function is REGEXP_INSTR source_string pattern_to_find This part works like the INSTR function. The general format for the REGEXP_INSTR function with all the options is REGEXP_INSTR source_string pattern_to_find position occurrence return_option match_parameter source_string is the string in which you wish to search for the pattern. 361 String Functions pattern_to_find is the pattern that you wish to search for in a string. position indicates where to start searching in source_string. occurrence indicates which occurrence of the pat-tern_to_find in the source_string you wish to search for. For example which occurrence of si do you want to extract from the source string Mississippi . return_option can be 0 or 1. If return_option is 0 Oracle returns the first character of the occurrence this is the default if return_option is 1 Oracle returns the position of the character following the occurrence. .

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
394    55    1    29-04-2024
145    377    5    29-04-2024
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.