Here you will find more than 50000 job interview questions

Job Questions Search Engine


Sponsored Links

How to create a backup or copy of a database ?

September 5, 2010 by bigboss · Leave a Comment
Filed under: MySQL Interview Questions 

mysqldump -h mysqlhost -u username -p mydatabasename > dbdump.sql

How to find duplicate entry or duplicate row in a table

In this sql command we are trying to find the duplicate entry with duplicate name. This sql command will give all the MIN id which has duplicate entry

SELECT MIN(id) AS dupid,COUNT(name) AS dupcnt
FROM tablename
GROUP BY name HAVING dupcnt>1

It should work on Oracle, Mysql

How can you access MySQL function in PHP

MYSQL is not available as a default feature it must be created by the user. You can use –with-mysql=DIR function to make available SQL on your system. Compiling PHP functions with MYSQL will increase the support and functioning of the language. MYSQL should be installed where there are extensions of PHP

How to create user in MySql – MySQL Interview Questions

July 9, 2010 by bigboss · Comments Off
Filed under: MySQL Interview Questions 

How to create user in mysql
SQL Command is below to create user in mysql . SQL Query to create user in mysql

CREATE USER ‘monty’@'localhost’ IDENTIFIED BY ‘some_pass’;

mysql> GRANT ALL PRIVILEGES ON *.* TO ‘monty’@'localhost’

-> WITH GRANT OPTION;

mysql> CREATE USER ‘monty’@'%’ IDENTIFIED BY ‘some_pass’;

mysql> GRANT ALL PRIVILEGES ON *.* TO ‘monty’@'%’

-> WITH GRANT OPTION;

mysql> CREATE USER ‘admin’@'localhost’;

mysql> GRANT RELOAD,PROCESS ON *.* TO ‘admin’@'localhost’;

mysql> CREATE USER ‘dummy’@'localhost’;


  • Categories

    |
  • Tags

    ADO.NET Questions Algorithm Questions ASP.NET Questions auto_ptr Binary tree questions C++ Constructor Interview Questions C++ Questions CISCO Exams Questions Common Interview Questions Core Java Interview Questions Csharp Questions datastructure questions Delphi 6 find command gdb interview questions grep interview questions IBM certification exams questions Infosys Puzzles Java Struts Linked List Problem Linux Command Questions List Manager Interview Questions Markov Algorithm memory leakage mysql Interview Questions Normalization Oracle Application Developer Certification Exam Interview Questions Oracle Questions Perl Questions PHP Questions Pointers Interview Questions PostgreSQL Database Questions pthread interview questions Smart Pointer Solaris Interview Questions SQL SERVER Interview Questions STL STL Map Symbian OS Tricky Interview Questions Unix Interview Questions unix shell Vector Windows OS Questions