soloscript.com
Home | Contact Us | Log In | Help
HOME New Listing Script NEW LISTING Most Popular Script MOST POPULAR High Rated Script HIGHEST RATED Script SCRIPTS Add Script ADD SCRIPT Download Tutorial DOWNLOADS Forums FORUM
TUTORIALS
   ASP.Net & C#
   ASP
   Perl and PHP
   Java Scripts
   C and C++
   Ajax Tutorials
   J2ee, J2Me, Java
   Python & Ruby Rail
   Crystal Report
   Sap
   CGI
   XML
   Cold Fusion & CFML
   HTML, DHTML & CSS
   Dreamweaver
   FLASH
   Photoshop/Web Designing
   Tools & Utilities
   Oracle/D2K
   Sql Server
   MySql
   Domain Name Registration
   Remotely Hosting
   Web/Server Application
   Hotel Marketing
   Internet and Law
   Search Engine Optimization/SEO
   E-Commerce
   Interview Questions
   Site Map

Previous < 1 2 3 4 5 6 7 8 9 > Next

MySql 5
 Explain data type TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP.

The column exhibits the same behavior as a single timestamp column in a table with no other timestamp columns.

   
 What does TIMESTAMP ON UPDATE CURRENT_TIMESTAMP data type do?

On initialization places a zero in that column, on future updates puts the current value of the timestamp in.

 
 Explain TIMESTAMP DEFAULT ‘2006:09:02 17:38:44′ ON UPDATE CURRENT_TIMESTAMP.

A default value is used on initialization, a current timestamp is inserted on update of the row.

 
 If I created a column with data type VARCHAR(3), what would I expect to see in MySQL table?

CHAR(3), since MySQL automatically adjusted the data type.

 
 How we can use more then one primary key in Single Table?

A single table can't have two primary keys.it can only forgein keys.but u can use any number of foregin key in a single table.
Its impossible to create two primary key in a single table but if we use composite key we have do it just like that
CREATE TABLE Test (id1 INT NOT NULL, id2 INT NOT NULL, name CHAR(20) NOT NULL, PRIMARY KEY(id1,id2));

 
 What is the Query that second largest salary to display?

SELECT MAX(salary) FROM TRY
WHERE salary NOT IN(SELECT MAX(salary) FROM TRY)

 
 Which command using Query Analyzer will give you the version of SQL server and operating system?

Type the command EXEC_msver in the query analyzer and then press either F5 or click the green triangle on the analyzer.

 
 What is the Query to find out max(salary) and min(salary) from a query?

Select Name,Salary from table1 where Salary =(select max(Salary) from table1)
UNION
Select Name,Salary from table1 where Salary =(select min(Salary) from table1)

   

Previous < 1 2 3 4 5 6 7 8 9 > Next

  Copyright 2000-2006 © SoloScript.com, All rights reserved.