• Bài giảng Transaction - Nguyễn Hồng PhươngBài giảng Transaction - Nguyễn Hồng Phương

    Transaction best practices  Using the SQL Server transaction helps maintaining the database integrity and consistency. On the other hand, a badly written transaction may affect the overall performance of your system by locking the database resources for long time. To overcome this issue, it is better to consider the following points when w...

    pdf9 trang | Chia sẻ: hachi492 | Ngày: 06/01/2022 | Lượt xem: 736 | Lượt tải: 0

  • Bài giảng Index - Nguyễn Hồng PhươngBài giảng Index - Nguyễn Hồng Phương

    INDEX in SQL  Composite Index  CREATE INDEX index_name ON table_name (column_name1, column_name2);  Drop index  DROP INDEX table_name.index_name;  DROP INDEX index_name ON table_name; Which cases should not we use index?  Small tables  Tables are often updated and inserted  Not be applied on columns which have a large number of ...

    pdf5 trang | Chia sẻ: hachi492 | Ngày: 06/01/2022 | Lượt xem: 844 | Lượt tải: 0

  • Một số dạng bài tập kết hợp ER Model và SQLMột số dạng bài tập kết hợp ER Model và SQL

    Bài 2: Giả sử cần xây dựng một ứng dụng quản lý thông tin cho một câu lạc bộ bóng đá với mô tả như sau:  Thông tin về các cầu thủ thuộc câu lạc bộ gồm có: Tên cầu thủ, ngày sinh, số áo cầu thủ, các giải thưởng đã giành được. Mỗi cầu thủ có thể tham gia các trận đấu khác nhau. Thông tin về vị trí của cầu thủ, số thẻ vàng, số thẻ đỏ của mỗi cầu...

    pdf2 trang | Chia sẻ: hachi492 | Ngày: 06/01/2022 | Lượt xem: 689 | Lượt tải: 0

  • Một số bài tập Cơ sở dữ liệuMột số bài tập Cơ sở dữ liệu

    Bài 9: Cho lược đồ quan hệ r(ABCDEGH) và tập phụ thuộc hàm trên r: F = {ABCD, ABE, BCDC, CED, CEH, DCG, CHG, ADH} • Tìm một phủ tối thiểu của F • Tìm một khóa của r dựa vào phủ tối thiểu • Tìm một phân rã của r có dạng chuẩn 3, bảo toàn thông tin và phụ thuộc hàm. Bài 10: Cho lược đồ quan hệ r(student, name, birthday, age, advisor, d...

    pdf3 trang | Chia sẻ: hachi492 | Ngày: 06/01/2022 | Lượt xem: 778 | Lượt tải: 0

  • Bài giảng Web Technologies and e-Services - Đại học Bách khoa Hà NộiBài giảng Web Technologies and e-Services - Đại học Bách khoa Hà Nội

    File upload ❖ Prevention Methods: ▪ The file types allowed to be uploaded should be restricted to only those that are necessary for business functionality. ▪ Never accept a filename and its extension directly without having a whitelist filter. ▪ The application should perform filtering and content checking on any files which are uploaded to ...

    pdf695 trang | Chia sẻ: hachi492 | Ngày: 06/01/2022 | Lượt xem: 619 | Lượt tải: 0

  • Bài giảng Web Technologies and e-Services - Bài 12: Web securityBài giảng Web Technologies and e-Services - Bài 12: Web security

    Command Injection v Command injection is an attack in which the goal is execution of arbitrary commands on the host operating system via a vulnerable application. Command Injection v How to prevent: § Validating against a whitelist of permitted values. § Validating that the input is a number. § Validating that the input contains only alphan...

    pdf40 trang | Chia sẻ: hachi492 | Ngày: 06/01/2022 | Lượt xem: 713 | Lượt tải: 0

  • Bài giảng Web Technologies and e-Services - Bài 11: Maintaining state through multiple formsBài giảng Web Technologies and e-Services - Bài 11: Maintaining state through multiple forms

    PHP Sessions • PHP supports two functions that enable you to retain data between forms • session_start() - either starts a new session or resumes one if a session exists • Run at the start of every script • By default creates a unique session ID stored as a cookie • session_register() - registers one or more variables as session variables ...

    pdf40 trang | Chia sẻ: hachi492 | Ngày: 06/01/2022 | Lượt xem: 572 | Lượt tải: 0

  • Bài giảng Web Technologies and e-Services - Bài 10: AjaxBài giảng Web Technologies and e-Services - Bài 10: Ajax

    Some cautions v As with any JavaScript element, you can’t (or shouldn’t) rely upon a user’s browser being able to execute JavaScript (some people turn it off on their browsers). (Of course, there are webpages that ignore this caution.) v Debug carefully and on many different browsers. Ajax uses features that might not be present in all browse...

    pdf37 trang | Chia sẻ: hachi492 | Ngày: 06/01/2022 | Lượt xem: 775 | Lượt tải: 0

  • Bài giảng Web Technologies and e-Services - Bài 9: XML, DTD và XML SchemaBài giảng Web Technologies and e-Services - Bài 9: XML, DTD và XML Schema

    XML Schema kiểu phức hợp • A là kiểu đơn giản: Đặc tả kiểu đơn giản A bao gồm • Đặc tả kiểu cơ sở của A • Đặc tả các hạn chế trên kiểu cơ sở của A XML Schema kiểu phức hợp • A là kiểu cơ sở : Không cần Đặc tả thêm Xét loại kiểu của A1 Xét loại kiểu của A2 . Xét loại kiểu của Ak Xét loại kiểu của B1 Xét loại kiểu của B2 . Xét loại kiểu...

    pdf148 trang | Chia sẻ: hachi492 | Ngày: 06/01/2022 | Lượt xem: 759 | Lượt tải: 0

  • Bài giảng Web Technologies and e-Services - Bài 7, Phần 2: Java servletBài giảng Web Technologies and e-Services - Bài 7, Phần 2: Java servlet

    Initial Solution • Develop a number of servlets • Each servlet plays the role of one function (a.k.a business logic) Review • Java servlets • Servlet methods and operation • HTML forms and servlets • HTTP cookies • Web application state management • Beer Recommendations with MVC model

    pdf49 trang | Chia sẻ: hachi492 | Ngày: 06/01/2022 | Lượt xem: 590 | Lượt tải: 0