Basic mySQL commands

Establishing a DB connection, with PHP

1. mysql_connect()

2. mysql_select_db()

3. mysql_query()

4. mysql_fetch_array()

5. mysql_result()

6. mysql_error()

Basic SQL commands

CREATE TABLE

ALTER TABLE CHANGE/ADD/DROP

DROP TABLE

INSERT INTO ( , , , … ) VALUES ( , , , …);

UPDATE WHERE

SELECT FROM WHERE WHERE/GROUP BY/HAVING/ORDER BY LIMIT…

DELETE FROM WHERE

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: