Pages

Subscribe:

Ads 468x60px

Labels

2013年6月18日 星期二

PHP+MySQL資料庫研習資料

http://www.js1es.tnc.edu.tw/~phptest/index.php

SQL語法

一般而言,資料庫的語法 ( SQL ) 分為三大類別: 

1. DDL ( Data Definition Language ):定義資料庫物件使用的語法,常看到的關鍵字有:
Create:建立資料庫的物件。
Alter:變更資料庫的物件。
Drop:刪除資料庫的物件。
2. DCL ( Data Control Language ):控制資料庫物件使用狀況的語法,常看到的關鍵字有:
Grant:賦予使用者使用物件的權限。
Revoke:取消使用者使用物件的權限。
Commit:Transaction 正常作業完成。
Rollback:Transaction 作業異常,異動的資料回復到 Transaction 開始的狀態。
3. DML ( Data Manipulation Language ):維護資料庫資料內容的語法,常看到的關鍵字有:
Insert:新增資料到 Table 中。
Update:更改 Table 中的資料。
Delete:刪除 Table 中的資料。
Select:選取資料庫中的資料。

詳見

MySQL 5.0 Reference Manual

MySQL 5.0 features.  This manual describes features that are not included in every edition of MySQL 5.0 and such features may not be included in the edition of MySQL 5.0 licensed to you. If you have any questions about the features included in your edition of MySQL 5.0, refer to your MySQL 5.0 license agreement or contact your Oracle representative.

詳見