Tài liệu Teach Yourself DirectX 7 in 24Hours docx
... Direct3D Adventure 2 17 Creating a Simple 3D Object 218 Rendering the Object 223 Getting Down to Business 224 Global Interface Pointers 225 Initializing the Application 2 27 Initializing DirectDraw for ... Direct3D 228 Initializing Direct3D 230 Setting Up a Viewport 231 Object Creation 232 Putting It in Motion 233 Rendering the Scene 236 Handling User Input 238 The Finishing Touches 240 R...
Ngày tải lên: 17/01/2014, 08:20
... Day 4 (Listing 4.15) and modify it with label names, as shown in Listing 5. 17. L ISTING 5. 17 Using Labels with Loops 1: BEGIN 2: <<outerloop>> 3: FOR v_outerloopcounter IN 1 2 LOOP 4: ... spacing should include aligning the END LOOP with the LOOP statement and the usual indent of five spaces for statements within the loop. Listing 5.21 contains an exam- ple in which t...
Ngày tải lên: 15/12/2013, 05:15
... the SQL*Plus prompt. The code in Listing 7. 2 illustrates the PUT_LINE command line that you can include inside a procedure. L ISTING 7. 2 The PUT_LINE Command Within a Procedure CREATE OR REPLACE ... pre- defined point, or the recursion would last forever. This point of termination is defined in a terminating condition. The following code example uses a conditional statement to termi...
Ngày tải lên: 15/12/2013, 05:15
Tài liệu Teach Yourself PL/SQL in 21 Days- P6 docx
... containing any of the following: OPEN stock_listing_cur (stock_listing.name, ‘ABCDEFG’); OPEN stock)listing_cur (stock_listing_name, stock_listing_price); Fetching Data in a Cursor You get data into ... pay_type 1 Jessica Loraine 2Kurt Roberts Inserting Some Data You will now insert data into the employee table for use in the remainder of the book. Type in the PL/SQL block shown in L...
Ngày tải lên: 15/12/2013, 05:15
Tài liệu Teach Yourself PL/SQL in 21 Days- P7 ppt
... imagina- tion. Some common uses are • Enforcing business rules • Maintaining referential integrity • Enforcing security • Maintaining a historical log of changes • Generating column values, including ... PLS_INTEGER; 15: inx1 PLS_INTEGER; 16: BEGIN 17: Initialize the index into the table. 18: depts_max := 0; 19: A NALYSIS , S YNTAX , I NPUT continues 14 79 82 ch10 11/30/99 1:13 PM Page 277...
Ngày tải lên: 15/12/2013, 05:15
Tài liệu Teach Yourself PL/SQL in 21 Days- P8 pptx
... VARCHAR2 IS 70 : BEGIN 71 : RETURN zip_code; 72 : END; 73 : 74 : MEMBER FUNCTION getPhone RETURN VARCHAR2 IS 75 : BEGIN 76 : RETURN phone_number; 77 : END; 78 : 79 : MEMBER PROCEDURE setPhone (newPhone IN VARCHAR2) ... TABLE buildings OF building; Table created. Lines 1–9 contain the building object’s type definition. As you can see, the building object has three attributes conta...
Ngày tải lên: 15/12/2013, 05:15
Tài liệu Teach Yourself PL/SQL in 21 Days- P9 doc
... Debugging Your Code and Preventing Errors 377 13 1: DECLARE 2: v_MyChar VARCHAR2(20) := ‘test’; 3: v_NUMBER NUMBER; 4: v_Date DATE := SYSDATE; 5: v_counter INTEGER; 6: BEGIN 7: DBMS_OUTPUT.PUT_LINE(‘This ... writing syntax errors into your code. I NPUT O UTPUT 17 7982 ch13 11/30/99 1:10 PM Page 377 Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. The statement...
Ngày tải lên: 15/12/2013, 05:15
Tài liệu Teach Yourself PL/SQL in 21 Days- P10 docx
... locks lesson you will learn: •Starting and stopping transactions •Implementing two-phase commits •Using savepoints •Using locks 21 79 82 ch15 11/30/99 1: 07 PM Page 4 37 Please purchase PDF Split-Merge ... Brandon’,3,1000.00,’S’); SAVEPOINT employee_1; INSERT INTO employee VALUES (7, ’Catherine Ann’,2,2000.00,’S’); ROLLBACK TO SAVEPOINT employee_1; In this example, the insertion of the...
Ngày tải lên: 15/12/2013, 05:15
Tài liệu Teach Yourself PL/SQL in 21 Days- P11 docx
... several lines into an array. The Syntax for GET_LINE and GET_LINES DBMS_OUTPUT.GET_LINE ( line OUT VARCHAR2, status OUT INTEGER); DBMS_OUTPUT.GET_LINES ( lines OUT CHARARR, numlines IN OUT INTEGER); In ... results. Lines 29–30 are the same as in Listing 17. 2, and simply serve to throw away the first line in the buffer. The call to 490 Day 17 L ISTING 17. 3 continued A NALYSIS 23...
Ngày tải lên: 15/12/2013, 05:15
Tài liệu Teach Yourself PL/SQL in 21 Days- P12 doc
... 06-22- 97 09: 37: 42 PM Hello Again for the Second Time! 06-22- 97 09: 37: 42 PM Hello World! 06-22- 97 09:38:35 PM Hello Again for the Second Time! 06-22- 97 09:38:35 PM Hello World! 06-22- 97 09:38:36 ... the polling time in seconds using SET_DEFAULTS . The Syntax for the SET_DEFAULTS Procedure PROCEDURE SET_DEFAULTS(polling_interval IN NUMBER); You specify the interval between p...
Ngày tải lên: 15/12/2013, 05:15