hostel management system - DSpace at CUSAT - Cochin University ...
hostel management system - DSpace at CUSAT - Cochin University ...
hostel management system - DSpace at CUSAT - Cochin University ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Hostel Mangement System<br />
2.3.1.2.2.3 Cre<strong>at</strong>e a D<strong>at</strong>abase<br />
The CREATE DATABASE st<strong>at</strong>ement is used to cre<strong>at</strong>e a d<strong>at</strong>abase in MySQL.<br />
Syntax<br />
CREATE DATABASE d<strong>at</strong>abase_name<br />
To get PHP to execute the st<strong>at</strong>ement above we must use the mysql_query() function. This function is<br />
used to send a query or command to a MySQL connection.<br />
2.3.1.2.2.4 Cre<strong>at</strong>e a Table<br />
Syntax<br />
The CREATE TABLE st<strong>at</strong>ement is used to cre<strong>at</strong>e a table in MySQL<br />
CREATE TABLE table_name<br />
(<br />
column_name1 d<strong>at</strong>a_type,<br />
column_name2 d<strong>at</strong>a_type,<br />
column_name3 d<strong>at</strong>a_type,<br />
....<br />
)<br />
Division of computer Engineering, SOE 15