My Sql Dump Snippets


In order for this to work, you will need to copy mysqldump.exe and mysql.exe from the MySQL bin Program Files folder into the same directory as your executing PHP script. If you know the direct path to these for your server, you can use those instead.

01 July, 2015   

Loads and saves a compressed dump of an array

30 December, 2010   

Class to back up entire databases and email them out, or individual tables

09 February, 2011   

Class to back up entire databases and email them out, or individual tables.

21 January, 2012   

PL/SQL Block that uses implicit cursor attributes as below example code.

01 December, 2011   

The following code block shows how to run DML statements in PL/SQL. Basically they look similar to the SQL. Note that the SELECT statement retrieves the single-row value and store into a variable using INTO clause.

09 May, 2011   

This is a general code to use when selecting an item from a MySQL database. This code isn't considered definitive and can be written in many varied ways. Note: This code requires you to connect to the MySQL database to work. Also, all field and table names need to be set up to match. This MYSQL Code using in PHP

Exam code to backup MySQL Database to SQL File

18 January, 2012   

SQL GROUP BY Clause returns group of rows. An example code for SQL GROUP BY clause

PL/SQL functions returns a scalar value and PL/SQL procedures return nothing. Both can take zero or more number of parameters as input or output. The special feature about PL/SQL is that a procedure/function argument can be of input (indicating the argument is read-only), output (indicating the argument is write-only) or both (both readable and...

08 September, 2012   

SQL query to know total number of employee on each department.

08 September, 2012   

SQL query to know employees where city is null

13 May, 2013   

You can also run this an anonymous SQL Block

19 December, 2012   

How to convert a java util Date into a sql Date for use in databases.

11 July, 2013   

Help manage mysql database common task

21 January, 2012   

PL/SQL code example for Explicit Cursors

Below shown how to Back Up and Restore a MySQL Database

05 July, 2012   

Backup MySQL Database to SQL File with mysqldump

29 December, 2012   

How to Back Up and Restore a MySQL Database

14 May, 2012   

How to generate SYNONYMS SQL