Các vấn đề DBMS MySQL PHP thao tác với DBMS MySQL

45 1 0
Các vấn đề DBMS MySQL PHP thao tác với DBMS MySQL

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

PHẦN 5: NỘI DUNG Giới thiệu Các vấn đề DBMS MySQL PHP thao tác với DBMS MySQL Các vấn đề lưu ý xử lý CSDL Giới thiệu  Most applications that you will work with or encounter will involve the use of some sort of data storage container In some cases, you will need nothing more than files for this purpose, but often, that container is some sort of database engine PHP provides access to a great number of different database systems, many of which are relational in nature and can be interrogated using Structured Query Language (SQL)  In order to utilize these databases, it is important to have a firm grasp on SQL, as well as the means to connect to and interact with databases from PHP  This chapter reviews the basic concepts of SQL and database connectivity from PHP using PHP Data Objects (PDO) interfaces (ref: page 132 of ebook “phparchitects Zend PHP Certification Study Guide”) Giới thiệu MODELs FOR STORING DATA DATABASE DBMSs? Các vấn đề DBMS MySQL Giới thiệu Data types Databases Tables Manipulations Retrieving  DBMS MySQL:  MySQL hệ quản trị sở liệu nguồn mở Ref: http://dev.mysql.com/doc/  Sử dụng MySQL: Các vấn đề DBMS MySQL Giới thiệu  Data types: Data types Data types Databases Tables Manipulations Retrieving Meaning int or integer Signed integer number, 32 bits in length smallint Signed integer number, 16 bits in length real Signed floating-point number, 32 bits in length float Signed floating-point number, 64 bits in length char Fixed-length character string varchar Variable-length character string Các vấn đề DBMS MySQL Giới thiệu Data types  Databases CREATE DATABASE CREATE SCHEMA Databases Tables Manipulations Retrieving  Table s CREATE TABLE ( [], [ []] )  Lưu ý  Khóa  Khóa ngoại  Các thao tác chỉnh sửa cấu trúc bảng: thêm, xóa, sửa, … Các vấn đề DBMS MySQL Giới thiệu Data types Databases  Manipulations (ADD) INSERT INTO VALUES ([, , ]) INSERT INTO ([, , ]) VALUES ([, , ]) Tables  Manipulations (DELETE) Manipulations DELETE FROM ; Retrieving DELETE FROM WHERE ;  Manipulations UPDATE SET field = value; (UPDATE) UPDATE SET field1 = value1,…, fieldn = valuen WHERE ; Các vấn đề DBMS MySQL Giới thiệu Data types Databases Tables Manipulations Retrieving  Retrieving SELECT < *, [field1value]>[, , ] FROM [ WHERE GROUP BY < field1value>[, , ] HAVING ORDER BY [, , ] ]  Họ tên:  Mã SV:  Lớp:  Khoá:  Email: 01 A B C D 02 … 19 20

Ngày đăng: 22/02/2023, 20:16

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan