Đang chuẩn bị liên kết để tải về tài liệu:
Beginning Visual Basic 2005 Databases phần 3

Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ

Chú ý: Trong ví dụ này, các lệnh cài đặt sẽ sao chép các mô-đun hello.py một số hệ thống cụ thể thư mục trong PYTHONPATH của bạn. Điều này không nên đặt ra một nguy cơ, nhưng nếu bạn không muốn lộn xộn hệ thống của bạn, bạn có thể muốn loại bỏ nó sau đó. | Chapter 7 13. Enter the following query to insert a new group in the Groups table INSERT INTO Groups GroupID GroupName GroupDescription LastUpdateDate VALUES @GroupID @GroupName @GroupDescription Date Time 14. Click the Save button on the toolbar or click the File menu and choose Save. In the Save As dialog box enter a query name of usp_InsertGroup. Once your query has been saved close the Query Builder window by clicking the X in its upper-right corner. 15. Double-click Create Query in Design View in the Query list to create another query. 16. Close the Show Table dialog box and then click the View button on the toolbar or click the View menu and choose SQL View. 17. Enter the following query to update a group in the Groups table UPDATE Groups SET GroupName @GroupName GroupDescription @GroupDescription LastUpdateDate Date Time WHERE GroupID @GroupID 18. Click the Save button on the toolbar or click the File menu and choose Save. In the Save As dialog box enter a query name of usp_UpdateGroup. Once your query has been saved close the Query Builder window by clicking the X in its upper-right corner. 19. Double-click Create Query in Design View in the Query list to create another query. 20. Close the Show Table dialog box and click the View button on the toolbar or click the View menu and choose SQL View. 21. Enter the following query to delete a group in the Groups table DELETE FROM Groups WHERE GroupID @GroupID 22. Click the Save button on the toolbar or click the File menu and choose Save. In the Save As dialog box enter a query name of usp_DeleteGroup. After your query has been saved close the Query Builder window by clicking the X in its upper-right corner. 23. Close your Access database. How It Works You ve already seen how to build queries in Access and you ve seen how SELECT INSERT UPDATE and DELETE queries work so I ll just summarize what you do in this section. The first query that you build is the usp_SelectGroups query. This SELECT query does not accept .