MySQL Running
MySQL Running
Advantages:
very fast
reliable and easy to use
multi-threaded multi-user and robust SQL database server.
Disadvantages:
Missing Sub-selects.
MySQL doesn't yet support the Oracle SQL extension: SELECT
... INTO TABLE , but supports INSERT INTO ... SELECT ..
Does not support Stored Procedures and Triggers.
MySQL doesn't support views, but this is on the TODO.
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
mysql> QUIT
mysql> exit
mysql> SELECT
-> USER()
-> \c
mysql>
31
Dr.Mareeswari V/SITE/VIT University/ Vellore
32 Dr.Mareeswari V/SITE/VIT University/ Vellore
Create a new database
Click Save
button at
bottom
34
Dr.Mareeswari V/SITE/VIT University/ Vellore
35 Dr.Mareeswari V/SITE/VIT University/ Vellore
Insert all values Click Go Button
SELECT what_to_select
FROM which_table
WHERE conditions_to_satisfy
3. Execute query
$query="";
$result=mysql_query($query,$con); -> older version
$result=mysqli_query($con,$query); -> newer version
Parameter Description
Company Name:TCS
No.of Workers:4000
Date:2014-04-14
while($row = mysqli_fetch_array($result)) {
echo "<tr>";
echo "<td>" . $row['Name'] . "</td>";
echo "</tr>";
}