TAILIEUCHUNG - Oracle PL/SQL Language Pocket Reference- P21

Oracle PL/SQL Language Pocket Reference- P21: This pocket guide features quick-reference information to help you use Oracle's PL/SQL language. It includes coverage of PL/SQL features in the newest version of Oracle, Oracle8i. It is a companion to Steven Feuerstein and Bill Pribyl's bestselling Oracle PL/SQL Programming. Updated for Oracle8, that large volume (nearly 1,000 pages) fills a huge gap in the Oracle market, providing developers with a single, comprehensive guide to building applications with PL/SQL and building them the right way. . | What database objects are dependent on Foo t USER DEPENDENCIES SELECT name type FROM user_dependencies WHERE referenced name FOO T SQL Plus Describe Command If you re like me and don t like to type any more than necessary you ll appreciate a wonderful enhancement that Oracle has provided for the describe command in SQL Plus. It will report not only the attributes of an object type but also the methods and their arguments. To illustrate SQL desc pet_t Name Null Type TAG_NO NAME ANIMAL_TYPE SEX PHOTO VACCINATIONS OWNER NUMBER 38 VARCHAR2 60 VARCHAR2 30 VARCHAR2 1 BINARY FILE LOB VACCINATION_LIST_T REF OF PERSON_T METHOD MEMBER FUNCTION SET_TAG_NO RETURNS PET_T Argument Name Type Default In Out NEW_TAG_NO NUMBER METHOD IN MEMBER FUNCTION SET_PHOTO RETURNS PET_T Argument Name Type Default In Out FILE LOCATION VARCHAR2 IN MEMBER PROCEDURE PRINT ME Although the formatting could be improved this is much easier than SELECTing the equivalent information from the data dictionary. Schema Evolution Please purchase PDF Split-Merge on to remove this watermark. Let s say that you have created an object type and you need to make a change to its definition. What do you do The answer is that it depends -- on whether you have used the type and on what type of change you want to make. Precious few modifications are easy the rest will probably age you prematurely. Consider the implications of where you have used the type Type has no dependencies. Using CREATE OR REPLACE you can change the object type to you heart s content. Or drop and recreate it who cares Life is good. Type is used only in PL SQL modules. In this case since you don t have to rebuild any dependent tables life is still easy. Oracle will automatically recompile dependent PL SQL modules the next time they are called. Type is used in one or more tables. Consider what would be a simple change to a relational table adding a column. If you try to add a column to an object table you get an .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.